Fix the action reference in workflow to allow sharing. #85
Workflow file for this run
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
# Main pipeline for releasing package and documentation. | |
on: | |
# Executes when content is pushed/merged to main or when a PR is created. | |
push: | |
branches: main | |
pull_request: | |
branches: main | |
# Can also be executed manually from Actions tab on github or as a subflow of another workflow. | |
workflow_dispatch: | |
workflow_call: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
name: Release Package 🚀 | |
jobs: | |
# Run the R-CMD check and uploads the tests incl. snaps if they fail. | |
# View subflow for details | |
build: | |
name: RMD Build and check | |
uses: ./.github/workflows/R-CMD-check.yaml | |
# Builds the pkgdown site and deploys it on gh-pages. | |
# View subflow for details | |
docs: | |
needs: build | |
name: Build and Deploy Docs | |
uses: ./.github/workflows/pkgdown.yaml | |
# Releases the package creating a new release if on main and the push is a new tag. | |
release: | |
needs: [build, docs] | |
name: Release | |
if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') | |
uses: ./.github/workflows/release.yaml |