ci: Use github actions instead of vercel to deploy
This commit is contained in:
parent
4710dfbd20
commit
bc520075c7
|
@ -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
|
|
@ -7,6 +7,6 @@
|
||||||
},
|
},
|
||||||
"routes": [{ "src": "/(.*)", "dest": "/api/index.php" }],
|
"routes": [{ "src": "/(.*)", "dest": "/api/index.php" }],
|
||||||
"github": {
|
"github": {
|
||||||
"silent": true
|
"enabled": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue