chore: update workflows to upload artifacts
All checks were successful
build site / build_site (push) Successful in 24s

This commit is contained in:
Julien Malka 2024-10-11 15:53:27 +02:00
parent b392df14f3
commit cc78084869
No known key found for this signature in database
GPG key ID: 6FC74C847011FD83

View file

@ -1,5 +1,9 @@
name: build site name: build site
on: on:
pull_request:
types: [opened, synchronize, edited, reopened]
branches:
- main
push: push:
branches: branches:
- main - main
@ -13,6 +17,7 @@ jobs:
run: nix-build run: nix-build
- name: Pushing site to pages branch - name: Pushing site to pages branch
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: | run: |
git switch -C pages git switch -C pages
find . -mindepth 1 -maxdepth 1 ! -name '.domains' ! -name '.git' ! -name 'result' -exec rm -rf {} + 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 commit --message "Deploy site"
git push --set-upstream origin pages --force git push --set-upstream origin pages --force
- uses: actions/upload-artifact@v3
with:
name: site
path: ./