Skip to content

Commit

Permalink
Setup GA
Browse files Browse the repository at this point in the history
  • Loading branch information
goergen95 committed Jul 27, 2024
1 parent a1c181f commit 42740ca
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
workflow_dispatch:
push:
branches: main

name: Quarto Publish

jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:

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

- name: Package Dependencies
run: Rscript -e 'install.packages(c("mapme.biodiversity", "leaflet.extras", "leaflet", "ggplot2", "sf", "exactextractr", "landscapemetrics", "plotly"))'

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

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

- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

/.quarto/
/docs/
interactive-deforestation-map_files
interactive-deforestation-map_files
3 changes: 3 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
project:
type: website
output-dir: docs

0 comments on commit 42740ca

Please sign in to comment.