diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index 22807b8b..794a8181 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -53,6 +53,7 @@ jobs: uses: actions/upload-pages-artifact@v3 with: name: github-pages + retention-days: 7 path: docs/build/html/ deploy: @@ -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}}