Skip to content

Commit

Permalink
Add link to Vercel project step to deployment actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MangoSwirl committed Jun 23, 2024
1 parent 557fb6f commit fa6d31e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
- name: Install Vercel CLI
run: npm install --global vercel@latest

- name: Link to Vercel project
run: vercel link --project tooling --yes --token=${{ secrets.VERCEL_TOKEN }}

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,17 @@ jobs:
- name: Install Vercel CLI
run: npm install --global vercel@latest

- name: Link to Vercel project
run: vercel link --project tooling --yes --token=${{ secrets.VERCEL_TOKEN }}

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --name highlander-robotics-projects/tooling --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

- name: Delete Neon Branch
uses: neondatabase/delete-branch-action@v2
Expand Down

0 comments on commit fa6d31e

Please sign in to comment.