Skip to content

Commit 89ed643

Browse files
authored
Fixes #525 leverage main workflow to build site (#538)
* Fixes #525 leverage main workflow to build site * Adapt _pkgdown.yaml * Change action permissions * Revert "Change action permissions" This reverts commit c98e893. * Reapply "Change action permissions" This reverts commit f484c70.
1 parent 25a7320 commit 89ed643

File tree

4 files changed

+20
-42
lines changed

4 files changed

+20
-42
lines changed

.github/workflows/main-workflow.yaml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,30 @@ name: Main-Workflow
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, develop]
66
pull_request:
7-
workflow_dispatch:
8-
9-
permissions: write-all
107

8+
permissions:
9+
contents: write
10+
packages: read
11+
1112
jobs:
13+
bump-dev-version: # only do that when actually merging in main/develop branch
14+
if: github.event_name != 'pull_request'
15+
uses: Open-Systems-Pharmacology/Workflows/.github/workflows/bump_dev_version_tag_branch.yaml@main
16+
with:
17+
app-id: ${{ vars.VERSION_BUMPER_APPID }}
18+
secrets:
19+
private-key: ${{ secrets.VERSION_BUMPER_SECRET }}
20+
1221
R-CMD-Check:
22+
needs: bump-dev-version
1323
if: ${{ !cancelled() }}
24+
permissions: read-all
1425
uses: Open-Systems-Pharmacology/Workflows/.github/workflows/R-CMD-check-build.yaml@main
1526

16-
test-coverage:
27+
pkgdown:
28+
needs: bump-dev-version
1729
if: ${{ !cancelled() }}
18-
uses: Open-Systems-Pharmacology/Workflows/.github/workflows/test-coverage.yaml@main
19-
secrets:
20-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
30+
uses: Open-Systems-Pharmacology/Workflows/.github/workflows/pkgdown.yaml@main
31+

.github/workflows/update-dev-website.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/update-release-website.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

_pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ template:
44
bootstrap: 5
55

66
development:
7-
mode: !expr Sys.getenv('PKGDOWN_MODE')
7+
mode: auto
88

99

1010
reference:

0 commit comments

Comments
 (0)