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'