landing/.forgejo/workflows/build-site.yaml
Julien Malka 00d1670cfb
All checks were successful
build site / build_site (push) Successful in 21s
chore: init workflow
2024-10-11 00:15:51 +02:00

28 lines
670 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: Pushing site to pages branch
run: |
git switch -C pages
find . -mindepth 1 -maxdepth 1 ! -name '.git' ! -name 'result' -exec rm -rf {} +
ls -a
cp -r result/* .
rm result
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