32 lines
860 B
YAML
32 lines
860 B
YAML
name: Deploy to vercel
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Install Nix
|
|
uses: DeterminateSystems/nix-installer-action@main
|
|
- name: Setup Nix Cache
|
|
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
- name: Check flake
|
|
uses: DeterminateSystems/flake-checker-action@main
|
|
- name: Build project
|
|
run: |
|
|
nix shell nixpkgs#go nixpkgs#gnumake github:a-h/templ
|
|
templ --help
|
|
go list
|
|
- 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'
|