From 3ed8d47332bfb5d84ed50e6e2304b75c82162d6a Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Thu, 9 Nov 2023 00:02:28 +0800 Subject: [PATCH] chore: add website deploy action --- .github/workflows/deploy-website.yml | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/deploy-website.yml diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml new file mode 100644 index 0000000..d1bd96b --- /dev/null +++ b/.github/workflows/deploy-website.yml @@ -0,0 +1,31 @@ +name: "Deployment Website" + +on: + push: + branches: + - master + paths: + - "website/**" + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18.x] + defaults: + run: + working-directory: website + steps: + - uses: actions/checkout@v4 + - name: Deploy to Vercel + uses: amondnet/vercel-action@v25.1.1 + env: + VERSION: ${{ env.GITHUB_SHA }} + with: + vercel-token: ${{ secrets.VERCEL_TOKEN }} + vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} + vercel-project-id: prj_V3iY3AcH0wIXxMHW4oDy3W3XzfnN + working-directory: ./ + vercel-args: '--prod'