From 2def54c775549251f5e05b0ee7a011498a6fafaa Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Wed, 31 Aug 2022 00:40:03 +0800 Subject: [PATCH] workflow: add gitee Deploy --- .github/workflows/gitee.yml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/gitee.yml diff --git a/.github/workflows/gitee.yml b/.github/workflows/gitee.yml new file mode 100644 index 000000000..78d1cbec3 --- /dev/null +++ b/.github/workflows/gitee.yml @@ -0,0 +1,39 @@ +name: Build and Deploy +permissions: + contents: write +on: + push: + branches: + - gitee +jobs: + deploy: + concurrency: ci-${{ github.ref }} + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v3 + + - name: Setup node + uses: actions/setup-node@v2 + with: + node-version: "16" + registry-url: https://registry.npmjs.com/ + + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: latest + + - name: Deploy 🔧 + run: | + pnpm install + sed -i "s#VITE_PUBLIC_PATH = /#VITE_PUBLIC_PATH = /vue-pure-admin/#g" $(pwd)/.env.production + pnpm build + cd dist + touch README.md .nojekyll + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: dist + clean: true