ci: testing alternative gh pages upload action

Signed-off-by: Brian McGee <brian@bmcgee.ie>
This commit is contained in:
Brian McGee 2024-05-03 18:00:34 +01:00
parent 602751aabb
commit e232ffe249
Signed by: brianmcgee
GPG Key ID: D49016E76AD1E8C0
2 changed files with 4 additions and 6 deletions

View File

@ -22,16 +22,13 @@ jobs:
with:
name: numtide
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Build the docs
id: build
run: |
nix build .#docs
echo "result=$(readlink ./result)" >> $GITHUB_OUTPUT
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: "${{ steps.build.outputs.result }}/"
path: result

View File

@ -26,6 +26,7 @@
exclude = [
"nix/"
"docs/"
".github/"
"README.md"
"default.nix"
"shell.nix"