ci: update vercel pipelines
preview: comment prod: should be fixed
This commit is contained in:
parent
2c5c13b264
commit
111188dcc9
2 changed files with 11 additions and 6 deletions
14
.github/workflows/preview.yml
vendored
14
.github/workflows/preview.yml
vendored
|
|
@ -8,6 +8,7 @@ on:
|
|||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
permissions: write-all
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
|
@ -15,9 +16,10 @@ jobs:
|
|||
fetch-depth: 0
|
||||
- name: Install Global Dependencies
|
||||
run: npm install --global vercel pnpm
|
||||
- name: Pull Vercel Environment Information
|
||||
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
|
||||
- name: Build Project Artifacts
|
||||
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
|
||||
- name: Deploy Project Artifacts to Vercel
|
||||
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
|
||||
- uses: amondnet/vercel-action@v25
|
||||
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}}
|
||||
alias-domains: ${{ secrets.TEST_PREVIEW_DOMAIN}}
|
||||
|
|
|
|||
3
.github/workflows/publish.yml
vendored
3
.github/workflows/publish.yml
vendored
|
|
@ -1,4 +1,7 @@
|
|||
name: Deploy to GitHub pages
|
||||
env:
|
||||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
||||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue