From df64c866dac38d1698865c847fec86043fdb7d84 Mon Sep 17 00:00:00 2001 From: adk23333 <2633103794@qq.com> Date: Fri, 15 Dec 2023 17:07:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0gitea=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..8ab654d --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,22 @@ +name: ARS Tools Deploy +run-name: ✨${{ gitea.actor }} is deploy ars-tools pages +on: + push: + branches: [ "main" ] + + # 允许手动触发 + workflow_dispatch: + +jobs: + build-and-deploy: + runs-on: node-21 + steps: + - name: 🛎️npm安装依赖 + run: npm install + - name: 🔧npm构建 + run: vite build + - name: 💪部署 + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: dist + branch: gh-pages