Skip to content

Commit

Permalink
Make secrets available to action step
Browse files Browse the repository at this point in the history
  • Loading branch information
camille-s committed Apr 18, 2024
1 parent de4e174 commit c8b0370
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,30 @@ jobs:
libgdal-dev \
libgeos-dev \
libproj-dev \
libde265-dev
libde265-dev
- name: Install R
uses: r-lib/actions/setup-r@v2
with:
r-version: '4.3.2'
r-version: "4.3.2"

- name: Install R Dependencies
uses: r-lib/actions/setup-renv@v2
with:
cache-version: 1

- name: Register keys
env:
GGMAP_GOOGLE_API_KEY: ${{ secrets.GGMAP_GOOGLE_API_KEY }}
GGMAP_STADIAMAPS_API_KEY: ${{ secrets.GGMAP_STADIAMAPS_API_KEY }}
# run r code
run: |
R -e 'ggmap::register_google(key = ${{ secrets.GGMAP_GOOGLE_API_KEY }}, write = TRUE)'
R -e 'ggmap::register_stadiamaps(key = ${{ secrets.GGMAP_STADIAMAPS_API_KEY }}, write = TRUE)'
R -e 'ggmap::register_google(key = ${{ GGMAP_GOOGLE_API_KEY }}, write = TRUE)'
R -e 'ggmap::register_stadiamaps(key = ${{ GGMAP_STADIAMAPS_API_KEY }}, write = TRUE)'
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c8b0370

Please sign in to comment.