Skip to content

Commit

Permalink
Set PAT for pkgdown
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasWallrich committed Nov 9, 2024
1 parent 106a104 commit b72a9e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/document-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ jobs:
- name: Deploy stable version (from main)
if: github.ref == 'refs/heads/main'
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
run: |
R -e "
install.packages(c('rsconnect', 'remotes'));
Expand All @@ -75,9 +77,12 @@ jobs:
rsconnect::deployApp(appName = 'CiteSource', appDir = './inst/shiny-app/CiteSource', forceUpdate = TRUE)"
- name: Create pkgdown
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
run: |
R -e "
install.packages('pkgdown');
bspm::disable();
if (!require(CiteSource)) remotes::install_github('ESHackathon/CiteSource', force = TRUE);
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)"
Expand Down

0 comments on commit b72a9e8

Please sign in to comment.