From 3e724f42386b586573ec528720cc2880ac9f0003 Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Fri, 11 Oct 2024 15:53:27 +0200 Subject: [PATCH] chore: update workflows to upload artifacts --- .forgejo/workflows/build-site.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.forgejo/workflows/build-site.yaml b/.forgejo/workflows/build-site.yaml index eb72455..28154f8 100644 --- a/.forgejo/workflows/build-site.yaml +++ b/.forgejo/workflows/build-site.yaml @@ -1,5 +1,9 @@ name: build site on: + pull_request: + types: [opened, synchronize, edited, reopened] + branches: + - main push: branches: - main @@ -13,6 +17,7 @@ jobs: run: nix-build - name: Pushing site to pages branch + if: github.event_name == 'push' && github.ref == 'refs/heads/main' run: | git switch -C pages find . -mindepth 1 -maxdepth 1 ! -name '.domains' ! -name '.git' ! -name 'result' -exec rm -rf {} + @@ -26,3 +31,8 @@ jobs: git commit --message "Deploy site" git push --set-upstream origin pages --force + + - uses: actions/upload-artifact@v4 + with: + name: site + path: **