Skip to content

Commit

Permalink
separate pkdown and package build
Browse files Browse the repository at this point in the history
  • Loading branch information
j-i-l committed May 17, 2024
1 parent 1f37eb0 commit 00b2221
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/publish_version_enforce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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::.
Expand All @@ -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 }}
Expand Down

0 comments on commit 00b2221

Please sign in to comment.