From 495d951824dec73d7969e9e51eb20c06d6ff54d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Darius=20A=2E=20G=C3=B6rgen?= Date: Fri, 26 Jul 2024 11:06:17 +0200 Subject: [PATCH] Setup GA --- .github/workflows/publish.yaml | 32 ++++++++++++++++++++++++++++++++ .gitignore | 14 ++++++++++++++ _quarto.yml | 3 +++ 3 files changed, 49 insertions(+) create mode 100644 .github/workflows/publish.yaml create mode 100644 _quarto.yml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..a2297ff --- /dev/null +++ b/.github/workflows/publish.yaml @@ -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 }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2655eaa..986eb8a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,21 @@ .Rproj.user .Ruserdata *.html +<<<<<<< HEAD +======= +<<<<<<< HEAD +<<<<<<< HEAD +======= +>>>>>>> bd64292 (Setup GA) /.quarto/ /docs/ interactive-deforestation-map_files +<<<<<<< HEAD +======= +>>>>>>> 9ca3a4a (Uses plotly for barplots) +======= + +/.quarto/ +>>>>>>> dd81051 (Setup GA) +>>>>>>> bd64292 (Setup GA) diff --git a/_quarto.yml b/_quarto.yml new file mode 100644 index 0000000..39cb3f2 --- /dev/null +++ b/_quarto.yml @@ -0,0 +1,3 @@ +project: + type: website + output-dir: docs \ No newline at end of file