From bc520075c7224ce39977232127fe17864c9e57a0 Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Sun, 23 Oct 2022 09:45:54 -0600 Subject: [PATCH] ci: Use github actions instead of vercel to deploy --- .github/workflows/vercel-deploy.yml | 22 ++++++++++++++++++++++ vercel.json | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/vercel-deploy.yml diff --git a/.github/workflows/vercel-deploy.yml b/.github/workflows/vercel-deploy.yml new file mode 100644 index 0000000..baec3cf --- /dev/null +++ b/.github/workflows/vercel-deploy.yml @@ -0,0 +1,22 @@ +name: "Deploy to Vercel" + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Deploy to Vercel + uses: amondnet/vercel-action@v20 + with: + vercel-token: ${{ secrets.VERCEL_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} + vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} + vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} + vercel-args: --prod diff --git a/vercel.json b/vercel.json index d5cb15e..a9cb1fa 100644 --- a/vercel.json +++ b/vercel.json @@ -7,6 +7,6 @@ }, "routes": [{ "src": "/(.*)", "dest": "/api/index.php" }], "github": { - "silent": true + "enabled": false } }