Skip to content

Commit

Permalink
Merge pull request #5 from IPAC-SW/pages
Browse files Browse the repository at this point in the history
Testing Pages
  • Loading branch information
dahlend authored Apr 24, 2024
2 parents 26d33ee + ae55bd7 commit 09ad411
Showing 1 changed file with 36 additions and 4 deletions.
40 changes: 36 additions & 4 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: Archive Docs
uses: actions/upload-artifact@v2
- 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: "github-pages"
# path:
# doc/html/*
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
name: "docs"
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 09ad411

Please sign in to comment.