Skip to content

Commit

Permalink
Split install into their own run commands
Browse files Browse the repository at this point in the history
  • Loading branch information
saipavan10-git committed Aug 14, 2024
1 parent aa81905 commit db898fc
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
CI: "TRUE"
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
CR_PAT: ${{ secrets.CR_PAT }}
permissions:
Expand All @@ -36,11 +37,14 @@ jobs:
- name: Install devtools
run: Rscript -e 'install.packages("devtools")'

- name: Install all dependencies for the current R environment
run: |
Rscript -e 'devtools::install_github("ctsit/redcapcustodian")'
Rscript -e 'devtools::install_github("ctsit/rcc.ctsit", auth_token = Sys.getenv("CR_PAT"))'
Rscript -e 'devtools::install(dependencies = TRUE, auth_token = Sys.getenv("CR_PAT"), upgrade = "never")'
- name: Install public R dependencies
run: Rscript -e 'devtools::install_github("ctsit/redcapcustodian")'

- name: Install private R dependencies
run: Rscript -e 'devtools::install_github("ctsit/rcc.ctsit", auth_token = Sys.getenv("CR_PAT"))'

- name: Install local package
run: Rscript -e 'devtools::install(dependencies = TRUE, auth_token = Sys.getenv("CR_PAT"), upgrade = "never")'

- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand Down

0 comments on commit db898fc

Please sign in to comment.