Skip to content

Commit

Permalink
Try different action to push to nist-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
guyer committed Nov 7, 2024
1 parent 9b2530f commit a4b5030
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,15 @@ jobs:
run: |
pip install -r requirements.txt
- name: Check out nist-pages
uses: actions/checkout@v4
with:
ref: 'nist-pages'
path: 'pf-recommended-practices/_build/html'

# Build the book
- name: Build the book
run: |
jupyter-book build pf-recommended-practices
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: nist-pages
directory: "pf-recommended-practices/_build/html"
github_token: ${{ github.token }}
# Pull requests from forked repos don't have permissions
# to push back to pages-branch
# https://github.com/orgs/community/discussions/26829
- 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 }}

0 comments on commit a4b5030

Please sign in to comment.