Skip to content

Commit a63c4ea

Browse files
authored
Adding the post-page-artifact job (#456)
* Adding the post-page-artifact job * Updating to use the cfa-action/post-artifact * Removing unnecesary data for the action * More cleaning
1 parent a1466ae commit a63c4ea

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/website.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
uses: actions/upload-pages-artifact@v3
5454
with:
5555
name: github-pages
56+
retention-days: 7
5657
path: docs/build/html/
5758

5859
deploy:
@@ -75,3 +76,20 @@ jobs:
7576
with:
7677
artifact_name: github-pages
7778
preview: true
79+
80+
post-page-artifact:
81+
if: ${{ github.event_name == 'pull_request' }}
82+
needs: build
83+
runs-on: ubuntu-latest
84+
permissions:
85+
contents: read
86+
pull-requests: write
87+
steps:
88+
- name: Checkout
89+
uses: actions/checkout@v4
90+
91+
- name: Post comment preview
92+
uses: CDCgov/cfa-actions/post-artifact@v1.0.0
93+
with:
94+
artifact-name: github-pages
95+
gh-token: ${{ secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)