Skip to content

Commit

Permalink
Testing Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlend authored Apr 24, 2024
1 parent 26d33ee commit 573fe68
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,41 @@ jobs:
- name: Build Docs
run: |
(cd doc && make clean && make html && make doctest)
- name: Fix permissions
run: |
chmod -c -R +rX "doc/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Archive Docs
uses: actions/upload-artifact@v2
with:
name: "docs"
name: "github-pages2"
path:
doc/html/*
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
name: "github-pages"
path:
doc/html/*
doc/html/*

deploy:
# Add a dependency to the build job
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 573fe68

Please sign in to comment.