Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate fully to GitHub Actions for Pages deployment #216

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 24 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
with:
persist-credentials: false

- name: Configure GitHub Pages
uses: actions/configure-pages@v3

- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -41,14 +44,25 @@ jobs:
# Build the site using mkdocs
run: mkdocs build --verbose --clean --strict

- name: Post-Mkdocs touch/copy files
# miscellaneous files needed for GitHub etc
run: |
touch site/.nojekyll

- name: Deploy 🚀
uses: JamesIves/[email protected]
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
with:
branch: gh-pages # The branch the action should deploy to.
folder: site # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch
path: "site"

# Deployment job
deploy:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: doc-deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading