chore: update workflows to upload artifacts
Some checks failed
build site / build_site (push) Failing after 37s
Some checks failed
build site / build_site (push) Failing after 37s
This commit is contained in:
parent
b392df14f3
commit
0d5e757b50
1 changed files with 10 additions and 0 deletions
|
@ -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: ./
|
||||
|
|
Loading…
Reference in a new issue