Skip to content

Commit

Permalink
Setup GA with renv
Browse files Browse the repository at this point in the history
  • Loading branch information
goergen95 committed Jul 26, 2024
1 parent 421a284 commit c168987
Show file tree
Hide file tree
Showing 6 changed files with 2,589 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")
46 changes: 46 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
on:
workflow_dispatch:
push:
branches: main

name: Quarto Publish

jobs:
build-deploy:
runs-on: ubuntu-latest
container:
image: ghcr.io/mapme-initiative/mapme-base:latest
permissions:
contents: write
steps:
- name: Install jq
uses: dcarbone/[email protected]

- name: Install GH CLI
uses: dev-hanz-ops/[email protected]

- name: Setup r2u
uses: eddelbuettel/github-actions/r2u-setup@master

- name: Check out repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- 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 }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
.Rproj.user
.Ruserdata
*.html

/.quarto/
Loading

0 comments on commit c168987

Please sign in to comment.