Skip to content

Commit

Permalink
feat: deploy to vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyhm committed Sep 14, 2023
1 parent fd9a459 commit 5c7cfca
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Playwright Tests
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
branches: master
jobs:
test:
timeout-minutes: 60
Expand All @@ -25,3 +26,16 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 30
deploy-production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Vercel CLI
run: npm install --global vercel@latest
- 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 --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,5 @@ dist
/test-results/
/playwright-report/
/playwright/.cache/

.vercel

0 comments on commit 5c7cfca

Please sign in to comment.