Skip to content

Commit

Permalink
[58] implement
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaccBarker committed Nov 13, 2024
1 parent f4cb110 commit b3565ae
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/sphinx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pull-requests: write
pages: write
id-token: write

Expand Down Expand Up @@ -59,12 +60,21 @@ jobs:
run: mv README_files docs/build/html

# Upload
- name: Upload artifacts
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: docs/build/html/

# Post the artifact pulling the id from the `readme` step.
- name: Post the artifact
uses: CDCgov/cfa-actions/post-artifact@main
if: ${{ github.event_name == 'pull_request' }}
with:
artifact-name: readme
gh-token: ${{ secrets.GITHUB_TOKEN }}
message: "Thanks for your contribution, ${{ github.actor }}; your `{ artifact-name }` is ready for download [here]({ artifact-url })."

deploy:
# Deploy to the github-pages environment
# but not on PRs
Expand Down

0 comments on commit b3565ae

Please sign in to comment.