From 8ad48ed08454ef0bdd51623299078be1dd4c5dac Mon Sep 17 00:00:00 2001 From: Maarten Pronk Date: Wed, 18 Sep 2024 18:36:29 +0200 Subject: [PATCH] Update Github Actions to run without Docker. --- .github/workflows/main.yaml | 26 +++++++++++++------------- .gitignore | 1 + _quarto.yml | 2 +- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 0cd4379..16239cd 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,26 +1,26 @@ on: + workflow_dispatch: push: branches: [main] -name: Render +name: Quarto Publish jobs: bookdown: name: GH-Pages runs-on: ubuntu-latest - container: ghcr.io/geocompx/docker:julia - defaults: - run: - shell: bash -l {0} - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + permissions: + contents: write steps: - uses: actions/checkout@v3 - uses: julia-actions/setup-julia@v2 - uses: quarto-dev/quarto-actions/render@v2 - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + + - name: Set up Quarto + uses: quarto-dev/quarto-actions/setup@v2 + + - name: Render and Publish + uses: quarto-dev/quarto-actions/publish@v2 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs - publish_branch: gh-pages - commit_message: 'Deploy commit: ${{ github.event.head_commit.message }}' + target: gh-pages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index a785c75..f79cad8 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ libs/ /.quarto/ docs +/_site/ diff --git a/_quarto.yml b/_quarto.yml index fd1b33a..2722c6a 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -10,7 +10,7 @@ book: description: | An introductory resource for working with geographic data in Julia #cover-image: https://geocompx.org/static/img/book_cover_py_tmp_small.png - site-url: https://jl.geocompx.org + site-url: https://geocompx.github.io/geocompjl/ repo-url: https://github.com/geocompx/geocompjl/ repo-branch: main repo-actions: [edit]