-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a381aeb
commit dd66417
Showing
3 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Nix Flake actions | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
|
||
jobs: | ||
nix-matrix: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: cachix/install-nix-action@v24 | ||
- id: set-matrix | ||
name: Generate Nix Matrix | ||
run: | | ||
set -Eeu | ||
- run: nix build | ||
- run: ls result/www | ||
- run: ls -la ./ | ||
- run: git checkout gh-pages | ||
- run: rm -fr www | ||
- run: cp -r ./result/www www | ||
- run: git commit -m "update build" | ||
- run: git push -f origin gh-pages | ||
# - run: nix-shell -p ghp-import | ||
# - run: ghp-import --message "Automatic update from https://github.com/icecreammatt/wiki.net" ./result/www | ||
# - run: git push --force origin gh-pages:gh-pages | ||
|
||
# matrix="$(nix eval --json '.#')" | ||
# echo "matrix=$matrix" >> "$GITHUB_OUTPUT" | ||
|
||
# nix-build: | ||
# needs: nix-matrix | ||
# runs-on: ${{ matrix.os }} | ||
# strategy: | ||
# matrix: ${{fromJSON(needs.nix-matrix.outputs.matrix)}} | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: cachix/install-nix-action@v24 | ||
# - run: nix build -L ".#" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters