From 092524b9e5ff596df95a20ebec99dbe12b95c8fb Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Fri, 9 Jul 2021 14:56:40 +0800 Subject: [PATCH] chore: add nightly build --- .github/workflows/vercel-nightly.yml | 23 +++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/vercel-nightly.yml diff --git a/.github/workflows/vercel-nightly.yml b/.github/workflows/vercel-nightly.yml new file mode 100644 index 00000000..f0c9db96 --- /dev/null +++ b/.github/workflows/vercel-nightly.yml @@ -0,0 +1,23 @@ +name: "deploy nightly" + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + - name: Deploy Prod + if: github.ref == 'refs/heads/docs' # is docs branch + uses: amondnet/vercel-action@master + with: + vercel-token: ${{ secrets.VERCEL_TOKEN }} + vercel-org-id: ${{ secrets.ORG_ID}} + vercel-project-id: ${{ secrets.PROJECT_ID}} + working-directory: ./ + vercel-args: '--prod' diff --git a/.gitignore b/.gitignore index 7a7cf3b5..d152ac61 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ locales +.vercel # Logs logs