Skip to content

Commit

Permalink
+ Github Action to render on commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bbest committed Jan 11, 2024
1 parent ffa3538 commit 79cf95d
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source("renv/activate.R")
45 changes: 45 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
workflow_dispatch:
push:
branches: main

name: Quarto Publish

jobs:
build-deploy:
runs-on: macOS-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true # for pdf

# From https://github.com/rspatial/terra/blob/master/.github/workflows/pkgdown.yml
# - name: Install spatial dependencies
# run: brew install gdal proj
#
# From https://github.com/actions/setup-python
# - name: Setup Python
# uses: actions/setup-python@v3

- name: Install R
uses: r-lib/actions/setup-r@v2
with:
r-version: '4.3.2'

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

- 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 79cf95d

Please sign in to comment.