Skip to content

Commit

Permalink
fix: pages artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Randoooom committed Mar 17, 2024
1 parent 01a165f commit 169b7b0
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,21 +151,10 @@ jobs:
command: make
args: docs_build

- name: Archive artifact
run: |
tar \
--dereference --hard-dereference \
-cvf "$RUNNER_TEMP/pages.tar" \
docs/
- name: Upload artifact
id: upload-artifact
uses: actions/upload-artifact@v4
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
name: pages
path: ${{ runner.temp }}/pages.tar
retention-days: 1
if-no-files-found: error
path: docs/

deploy-docs:
needs: [ build-docs, test ]
Expand All @@ -175,10 +164,14 @@ jobs:
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}/nightly
url: ${{ steps.deployment.outputs.page_url }}nightly
steps:
- name: Fix permissions
run: |
chmod -c -R +rX "docs/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Deploy to pages
id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: "pages"
uses: actions/deploy-pages@v3

0 comments on commit 169b7b0

Please sign in to comment.