31 lines
746 B
YAML
31 lines
746 B
YAML
name: Deploy to vercel
|
|
|
|
on:
|
|
push:
|
|
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'
|