-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (29 loc) · 1.04 KB
/
Release-package.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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:
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