diff --git a/.github/workflows/publish_version_enforce.yml b/.github/workflows/publish_version_enforce.yml index 69f28c12..9bc98b0d 100644 --- a/.github/workflows/publish_version_enforce.yml +++ b/.github/workflows/publish_version_enforce.yml @@ -70,7 +70,25 @@ jobs: name: package path: ${{ env.BUILD_LOC }}/abn.tar.gz - # NOTE: This should go the the r-container + build-pkgdown-content: + runs-on: ubuntu-latest + needs: + - associated_pr + # Only restrict concurrency for non-PR jobs + concurrency: + group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + permissions: + contents: write + id-token: write + pages: write + steps: + - uses: actions/checkout@v4 + - uses: r-lib/actions/setup-pandoc@v2 + - uses: r-lib/actions/setup-r@v2 + with: + use-public-rspm: true - uses: r-lib/actions/setup-r-dependencies@v2 with: extra-packages: any::pkgdown, local::. @@ -89,8 +107,9 @@ jobs: release-version: # NOTE: Currently this workflow only runs if a release- branch has an open pull request needs: - - build-release-content - associated_pr + - build-release-content + - build-pkgdown-content runs-on: ubuntu-latest env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}