Skip to content

Commit

Permalink
Merge pull request #270 from pharmaverse/update-docs
Browse files Browse the repository at this point in the history
update workflows
  • Loading branch information
bundfussr authored Dec 13, 2023
2 parents 3c3e167 + 3462700 commit 088e3b8
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@ on:
# 'push' events are triggered when commits
# are pushed to one of these branches
push:
tags:
- "v*"
branches:
- main
- devel
- pre-release
- test
- patch
# 'pull_request' events are triggered when PRs are
# created against one of these target branches.
pull_request:
branches:
- main
- devel
- pre-release
- test
- patch
# 'release' events are triggered when...
# you guessed it - when releases are made.
release:
Expand All @@ -37,7 +35,7 @@ concurrency:

env:
R_VERSION: "4.1"

jobs:
get_r_version:
name: Get R version
Expand Down Expand Up @@ -86,19 +84,13 @@ 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')
needs: get_r_version
with:
r-version: "${{ needs.get_r_version.outputs.r-version }}"
# Whether to skip multiversion docs
# Note that if you have multiple versions of docs,
# your URL links are likely to break due to path changes
r-version: "4.3"
skip-multiversion-docs: true
latest-tag-alt-name: main
multiversion-docs-landing-page: main
branches-or-tags-to-list: >-
^devel$|^main$|^v([0-9]+\\.)?([0-9]+\\.)?([0-9]+)$
secrets:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
linter:
name: Lint
uses: pharmaverse/admiralci/.github/workflows/lintr.yml@main
Expand Down

0 comments on commit 088e3b8

Please sign in to comment.