added vercel token as github secret #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "[CD] Continuous Delivery" | |
# on: | |
# push: | |
# branches: [main] | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
env: | |
VERCEL_ORG_ID: team_LQQ8EA13GiS1PZApkHKSIck9 | |
VERCEL_PROJECT_ID: prj_JdHzBfznmrwQTqsldULnikdWXD7b | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
## Common ci steps | |
- uses: actions/checkout@v3 | |
# =============================== | |
- name: "Debug" | |
run: "ls -la" | |
- name: "Install Dependencies" | |
run: "npm install" | |
- name: "Publish to Vercel" | |
run: "npx vercel --prod --token=${{ secrets.VERCEL_TOKEN }}" |