-
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.
Merge pull request #147 from nmfs-fish-tools/add-additional-args-to-yaml
feat: add additional args to yaml files
- Loading branch information
Showing
20 changed files
with
1,357 additions
and
748 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 |
---|---|---|
@@ -1,36 +1,61 @@ | ||
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
workflow_call: | ||
|
||
name: build-pkgdown | ||
|
||
jobs: | ||
pkgdown: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
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::. | ||
needs: website | ||
|
||
- name: build pkgdown | ||
run: | | ||
Rscript -e 'pkgdown::build_site()' | ||
- name: save pkgdown output | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pkgdown-site | ||
path: docs/ | ||
|
||
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
workflow_call: | ||
inputs: | ||
additional_args_windows: | ||
required: false | ||
type: string | ||
default: "" | ||
additional_args_macos: | ||
required: false | ||
type: string | ||
default: "" | ||
additional_args_ubuntu: | ||
required: false | ||
type: string | ||
default: "" | ||
|
||
name: build-pkgdown | ||
|
||
jobs: | ||
pkgdown: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: run additional args on windows | ||
if: matrix.config.os == 'windows-latest' | ||
run: ${{ inputs.additional_args_windows }} | ||
|
||
- name: run additional args on macOS | ||
if: matrix.config.os == 'macOS-latest' | ||
run: ${{ inputs.additional_args_macos }} | ||
|
||
- name: run additional args on ubuntu | ||
if: matrix.config.os == 'ubuntu-latest' | ||
run: ${{ inputs.additional_args_ubuntu }} | ||
|
||
- 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::. | ||
needs: website | ||
|
||
- name: build pkgdown | ||
run: | | ||
Rscript -e 'pkgdown::build_site()' | ||
- name: save pkgdown output | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pkgdown-site | ||
path: docs/ | ||
|
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,15 @@ | ||
# Checks that the pkgdown site builds for a repository. | ||
# this assumes pkgdown is already set up. | ||
name: call-build-pkgdown | ||
# on specifies the build triggers. See more info at https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows | ||
on: | ||
# this workflow runs on pushes to main or master or any time a new tag is pushed | ||
# it also runs everytime a pull request to main or master is opened. | ||
push: | ||
branches: [main, master] | ||
tags: ['*'] | ||
pull_request: | ||
branches: [main, master] | ||
jobs: | ||
call-workflow: | ||
uses: nmfs-fish-tools/ghactions4r/.github/workflows/build-pkgdown.yml@main |
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# Run r cmd check | ||
on: | ||
workflow_dispatch: | ||
push: | ||
paths-ignore: | ||
- '.github/workflows/call**' | ||
pull_request: | ||
paths-ignore: | ||
- '.github/workflows/call**' | ||
schedule: | ||
# This should run the default branch weekly on sunday | ||
- cron: '0 0 * * 0' | ||
name: call-r-cmd-check | ||
|
||
jobs: | ||
call-workflow: | ||
uses: nmfs-fish-tools/ghactions4r/.github/workflows/r-cmd-check.yml@main | ||
# Run r cmd check | ||
on: | ||
workflow_dispatch: | ||
push: | ||
paths-ignore: | ||
- '.github/workflows/call**' | ||
pull_request: | ||
paths-ignore: | ||
- '.github/workflows/call**' | ||
schedule: | ||
# This should run the default branch weekly on sunday | ||
- cron: '0 0 * * 0' | ||
name: call-r-cmd-check | ||
|
||
jobs: | ||
call-workflow: | ||
uses: nmfs-fish-tools/ghactions4r/.github/workflows/r-cmd-check.yml@main |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# updates exiting pkgdown site for a repository | ||
# deploys to a branch gh-pages | ||
name: call-update-pkgdown | ||
# on specifies the build triggers. See more info at https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows | ||
on: | ||
# this workflow runs on pushes to main or master or any time a new tag is pushed | ||
workflow_dispatch: | ||
push: | ||
branches: [main, master] | ||
tags: ['*'] | ||
jobs: | ||
call-workflow: | ||
uses: nmfs-fish-tools/ghactions4r/.github/workflows/update-pkgdown.yml@main | ||
# updates exiting pkgdown site for a repository | ||
# deploys to a branch gh-pages | ||
name: call-update-pkgdown | ||
# on specifies the build triggers. See more info at https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows | ||
on: | ||
# this workflow runs on pushes to main or master or any time a new tag is pushed | ||
workflow_dispatch: | ||
push: | ||
branches: [main, master] | ||
tags: ['*'] | ||
jobs: | ||
call-workflow: | ||
uses: nmfs-fish-tools/ghactions4r/.github/workflows/update-pkgdown.yml@main |
Oops, something went wrong.