ci: testing alternative gh pages upload action
Signed-off-by: Brian McGee <brian@bmcgee.ie>
This commit is contained in:
parent
602751aabb
commit
e232ffe249
9
.github/workflows/gh-pages.yml
vendored
9
.github/workflows/gh-pages.yml
vendored
|
@ -22,16 +22,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: numtide
|
name: numtide
|
||||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
|
|
||||||
- name: Build the docs
|
- name: Build the docs
|
||||||
id: build
|
id: build
|
||||||
run: |
|
run: |
|
||||||
nix build .#docs
|
nix build .#docs
|
||||||
echo "result=$(readlink ./result)" >> $GITHUB_OUTPUT
|
echo "result=$(readlink ./result)" >> $GITHUB_OUTPUT
|
||||||
|
- name: Upload artifact
|
||||||
- name: Deploy
|
uses: actions/upload-pages-artifact@v3
|
||||||
uses: peaceiris/actions-gh-pages@v4
|
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
path: result
|
||||||
publish_dir: "${{ steps.build.outputs.result }}/"
|
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
exclude = [
|
exclude = [
|
||||||
"nix/"
|
"nix/"
|
||||||
"docs/"
|
"docs/"
|
||||||
|
".github/"
|
||||||
"README.md"
|
"README.md"
|
||||||
"default.nix"
|
"default.nix"
|
||||||
"shell.nix"
|
"shell.nix"
|
||||||
|
|
Reference in New Issue
Block a user