From 9d5cd8a555780e48ca893f73ec802c5df01894a4 Mon Sep 17 00:00:00 2001 From: yuanyxh <15766118362@139.com> Date: Mon, 11 Sep 2023 21:48:51 +0800 Subject: [PATCH] chore: add git actions --- .github/workflows/deploy-docs.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/deploy-docs.yml diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 0000000..91b1b34 --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -0,0 +1,25 @@ +name: Build and Deploy +on: + push: + branches: + - dev +permissions: + contents: write +jobs: + build-and-deploy: + concurrency: ci-${{ github.ref }} + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v3 + + - name: Install and Build 🔧 + run: | + npm ci + npm run build + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: deploy + folder: build