Skip to content

Commit

Permalink
Make deploy upload to pages.nist.gov
Browse files Browse the repository at this point in the history
  • Loading branch information
guyer committed Nov 7, 2024
1 parent 527e786 commit e693ee9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@ concurrency:
jobs:
deploy-book:
runs-on: ubuntu-latest
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
pages: write
id-token: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Install dependencies
- name: Set up Python 3.11
Expand All @@ -40,13 +37,10 @@ jobs:
run: |
jupyter-book build pf-recommended-practices
# 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
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: nist-pages
FOLDER: "pf-recommended-practices/_build/html"
GITHUB_TOKEN: ${{ github.token }}
1 change: 0 additions & 1 deletion pf-recommended-practices/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ The second part of the website a small sample book to give you a feel for how bo
structured.
It shows off a few of the major file types, as well as some sample content.
It does not go in-depth into any particular topic - check out [the Jupyter Book documentation](https://jupyterbook.org) for more information.

0 comments on commit e693ee9

Please sign in to comment.