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: | find . -mindepth 1 ! -name 'result' -exec rm -rf {} + 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