Skip to content

Commit

Permalink
Adding the post-page-artifact job (#456)
Browse files Browse the repository at this point in the history
* Adding the post-page-artifact job

* Updating to use the cfa-action/post-artifact

* Removing unnecesary data for the action

* More cleaning
  • Loading branch information
gvegayon authored Oct 24, 2024
1 parent a1466ae commit a63c4ea
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
retention-days: 7
path: docs/build/html/

deploy:
Expand All @@ -75,3 +76,20 @@ jobs:
with:
artifact_name: github-pages
preview: true

post-page-artifact:
if: ${{ github.event_name == 'pull_request' }}
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Post comment preview
uses: CDCgov/cfa-actions/post-artifact@v1.0.0
with:
artifact-name: github-pages
gh-token: ${{ secrets.GITHUB_TOKEN}}

0 comments on commit a63c4ea

Please sign in to comment.