From bd6429275fb3dfb452620bd32323d09de583d1f9 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 | 5 +++++ _quarto.yml | 3 +++ 3 files changed, 40 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 dfa6258..33c4122 100644 --- a/.gitignore +++ b/.gitignore @@ -5,9 +5,14 @@ .Ruserdata *.html <<<<<<< HEAD +<<<<<<< HEAD ======= /.quarto/ /docs/ interactive-deforestation-map_files >>>>>>> 9ca3a4a (Uses plotly for barplots) +======= + +/.quarto/ +>>>>>>> dd81051 (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