Skip to content

Commit

Permalink
test github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedongPeng committed Aug 23, 2024
1 parent c540dc8 commit c28ddca
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/tutorial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- main
- update-github-actions
# If your git repository has the Jupyter Book within some-subfolder next to
# unrelated files, you can make this run only if a file within that specific
# folder has been modified.
Expand Down Expand Up @@ -47,14 +48,19 @@ jobs:
run: |
jupyter-book build .
# Upload the book's HTML as an artifact
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "_build/html"
# # Upload the book's HTML as an artifact
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v2
# with:
# path: "_build/html"

# Deploy the book's HTML to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
# # Deploy the book's HTML to GitHub Pages
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v2

- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html

0 comments on commit c28ddca

Please sign in to comment.