pages/.woodpecker/build-site.yml
Thomas A. Christensen II f3fba04398
All checks were successful
ci/woodpecker/push/build-site Pipeline was successful
ci: Fix Woodpecker symlink deployment issue
Woodpecker wasn't able to deploy, because 'result' from a Nix flake is a
symlink to the Nix store, which isn't copied over to a non-Nix
deployment container like plugin-codeberg-pages-deploy. Trying to
troubleshoot deploy steps in particular is hard because, not only do you
not want to have the test stage doing random deployments, but Woodpecker
CLI also features a nice bug where the use of `from_secret` actually
causes the entire pipeline to not run.

Anyway, remove excess permissions that are no longer needed, create a
proper copy step, and fix the deployment.
2024-12-16 21:52:56 -06:00

17 lines
418 B
YAML

when:
branch: master
event: push
steps:
- name: Build site
image: nixos/nix:2.24.11
commands:
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
- nix build
- mkdir public && cp -av result/* public
- name: Deploy to pages
image: codeberg.org/xfix/plugin-codeberg-pages-deploy:1
settings:
folder: public
ssh_key:
from_secret: ssh_key