Skip to content

Commit

Permalink
Merge pull request #1808 from pharmaverse/add-tag-event@main
Browse files Browse the repository at this point in the history
Add tag event for docs creation
  • Loading branch information
bms63 authored Mar 7, 2023
2 parents 99c23e0 + d6b3f8c commit ff6b8cf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
# 'push' events are triggered when commits
# are pushed to one of these branches
push:
tags:
- "v*"
branches:
- main
- devel
Expand Down Expand Up @@ -67,7 +69,7 @@ jobs:
docs:
name: Documentation
uses: pharmaverse/admiralci/.github/workflows/pkgdown.yml@main
if: github.event_name == 'push'
if: github.event_name == 'push' || startsWith(github.ref, 'refs/tags/v')
with:
r-version: "4.0"
# Whether to skip multiversion docs
Expand All @@ -77,7 +79,7 @@ jobs:
latest-tag-alt-name: cran-release
multiversion-docs-landing-page: cran-release
branches-or-tags-to-list: >-
^cran-release$|^v([0-9]+\\.)?([0-9]+\\.)?([0-9]+)$
^cran-release$|^main$|^v([0-9]+\\.)?([0-9]+\\.)?([0-9]+)$
linter:
name: Lint
uses: pharmaverse/admiralci/.github/workflows/lintr.yml@main
Expand All @@ -87,13 +89,12 @@ jobs:
links:
name: Links
uses: pharmaverse/admiralci/.github/workflows/links.yml@main
if: >
github.event_name == 'push' || github.event_name == 'pull_request'
if: github.event_name == 'pull_request'
coverage:
name: Code Coverage
uses: pharmaverse/admiralci/.github/workflows/code-coverage.yml@main
if: >
github.event_name == 'push' || github.event_name == 'pull_request'
github.event_name != 'release'
with:
r-version: "4.0"
# Whether to skip code coverage badge creation
Expand Down

0 comments on commit ff6b8cf

Please sign in to comment.