-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: 👷 split into main vs PR build CI workflows (#174)
## Description These changes are made because the styling and documenting can only be done on non-main branches. So this adds two builds.
- Loading branch information
1 parent
c5a1edd
commit 3f8183a
Showing
2 changed files
with
39 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
pull_request: | ||
branches: main | ||
|
||
name: Build package | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
style: | ||
uses: ./.github/workflows/reusable-style.yaml | ||
permissions: | ||
contents: write | ||
secrets: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
document: | ||
uses: ./.github/workflows/reusable-document.yaml | ||
needs: style | ||
permissions: | ||
contents: write | ||
secrets: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
cran-check: | ||
uses: ./.github/workflows/reusable-cran-check.yaml | ||
needs: document | ||
secrets: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
pkgdown: | ||
uses: ./.github/workflows/reusable-pkgdown.yaml | ||
needs: cran-check | ||
permissions: | ||
contents: write | ||
secrets: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters