Files
guz.one/.github/workflows/deploy.yml
Gustavo "Guz" L. de Mello a6676c0017 feat(ci): linting and previews
2024-05-23 15:04:09 -03:00

35 lines
813 B
YAML

name: Deploy to vercel
on:
workflow_run:
workflows:
- Checks
types:
- completed
branches:
- main
jobs:
deploy:
name: Deploy
if: ${{ github.repository == 'dot013/.www-new' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.22.2'
- name: Build
run: |
go install github.com/a-h/templ/cmd/templ@latest
make build-vercel
- name: Deploy
uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
vercel-args: '--prod'