ci: Use github actions instead of vercel to deploy

This commit is contained in:
Jonah Lawrence 2022-10-23 09:45:54 -06:00
parent 4710dfbd20
commit bc520075c7
No known key found for this signature in database
GPG Key ID: 613851A667DC08A3
2 changed files with 23 additions and 1 deletions

22
.github/workflows/vercel-deploy.yml vendored Normal file
View File

@ -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

View File

@ -7,6 +7,6 @@
}, },
"routes": [{ "src": "/(.*)", "dest": "/api/index.php" }], "routes": [{ "src": "/(.*)", "dest": "/api/index.php" }],
"github": { "github": {
"silent": true "enabled": false
} }
} }