fix(ci): temp fix
This commit is contained in:
16
.github/workflows/deploy.yml
vendored
16
.github/workflows/deploy.yml
vendored
@@ -11,15 +11,15 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- uses: DeterminateSystems/flake-checker-action@main
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v5
|
||||
- name: Generate templ files
|
||||
- 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 run github:a-h/templ -- generate
|
||||
ls pages
|
||||
nix shell nixpkgs#go github:a-h/templ --command 'make build-vercel'
|
||||
- name: Deploy
|
||||
uses: amondnet/vercel-action@v25
|
||||
with:
|
||||
|
||||
7
makefile
7
makefile
@@ -37,7 +37,12 @@ bin/www: main.go templ
|
||||
bin/vercel: cmd/vercel/main.go templ
|
||||
go build -o ./bin/vercel ./cmd/vercel/main.go
|
||||
|
||||
templ:
|
||||
# For some reason "templ generate" does not detect the files in CI, so this is a
|
||||
# workaround.
|
||||
TEMPL_FILES=$(patsubst %.templ, %_templ.go, $(wildcard **/*.templ))
|
||||
templ: $(TEMPL_FILES)
|
||||
@echo Generating templ files
|
||||
%_templ.go: %.templ
|
||||
templ generate
|
||||
|
||||
clean:
|
||||
|
||||
Reference in New Issue
Block a user