Skip to content

Commit

Permalink
Moved GITHUB_PAT in gh-action
Browse files Browse the repository at this point in the history
  • Loading branch information
Lextuga007 committed Apr 20, 2024
1 parent 2f0ad38 commit b01a143
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/quarto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
container:
image: ghcr.io/dukestatsci/r_gh_actions:latest
steps:
- uses: actions/checkout@v4

Expand All @@ -41,14 +41,17 @@ jobs:
run: |
remotes::install_github("nhs-r-community/NHSRpostcodetools")
shell: Rscript {0}
env:
GITHUB_PAT: ${{ secrets.GH_PAT }}

- name: Install NHSRpopulation
run: |
remotes::install_github("nhs-r-community/NHSRpopulation")
shell: Rscript {0}


env:
GITHUB_PAT: ${{ secrets.GH_PAT }}


- name: Build site
run: |
quarto render
Expand Down

0 comments on commit b01a143

Please sign in to comment.