Skip to content

Commit

Permalink
Testing better method
Browse files Browse the repository at this point in the history
  • Loading branch information
larsvilhuber committed Jun 29, 2024
1 parent 102c25d commit fcc5bef
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,37 @@ jobs:
run: |
jupyter-book build .
# Book is now in _build/html
- name: prepare GitHub Pages action
uses: actions/[email protected]
with:
path: ./_build/html
# publish:
# needs: deploy-book
# runs-on: ubuntu-latest
# steps:
# # Push the book's HTML to github-pages
# - name: GitHub Pages action
# uses: peaceiris/[email protected]
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./_build/html

publish:
needs: deploy-book

# 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:
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit fcc5bef

Please sign in to comment.