Skip to content

Commit

Permalink
Update workflow-generate-website.yml
Browse files Browse the repository at this point in the history
Adjustments to fix committing against branch protection rules.
  • Loading branch information
david-waltermire authored Apr 28, 2022
1 parent 29084a5 commit 86952d7
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/workflow-generate-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,20 @@ jobs:
with:
script: |
core.setFailed('Link checker detected broken or invalid links, read attached report.')
- name: Deploy Website
- name: Deploy Website (using access_token)
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305 # current: v3
if: |
github.ref_name == 'main' &&
(github.event.inputs.commit_resources == true || inputs.commit_resources == true)
if: github.event_name == 'push' && inputs.commit_resources == true && github.ref_name == 'main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.access_token }}
enable_jekyll: false
publish_dir: ./website/public
publish_branch: nist-pages
commit_message: Deploying website [ci deploy skip]
- name: Deploy Website (using COMMIT_TOKEN)
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305 # current: v3
if: github.event_name == 'workflow_dispatch' && github.event.inputs.commit_resources == true && github.ref_name == 'main'
with:
github_token: ${{ secrets.COMMIT_TOKEN }}
enable_jekyll: false
publish_dir: ./website/public
publish_branch: nist-pages
Expand Down

0 comments on commit 86952d7

Please sign in to comment.