landing/.forgejo/workflows/build-site.yaml
Julien Malka eb2e09da8f
All checks were successful
build site / build_site (push) Successful in 21s
test workflow
2024-10-10 23:55:11 +02:00

28 lines
637 B
YAML

name: build site
on:
push:
branches:
- main
jobs:
build_site:
runs-on: nix
steps:
- uses: actions/checkout@v3
- name: Build the site
run: nix-build
- name: Update dependencies and open PR if necessary
run: |
shopt -s extglob
rm -rf -- !(result)
cp -r result/* .
rm result
git switch -C pages
git add *
git config user.name "DGNum Deploy"
git config user.email "tech@dgnum.eu"
git commit --message "Deploy site"
git push --set-upstream origin pages --force