From f6828b8c21ffa4be432edb64d8b25b1297eb5372 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Wed, 13 Dec 2023 22:51:53 +0100 Subject: [PATCH] Update runner & hugo task --- .github/workflows/gh-pages.yml | 62 ++++++++++++++++------------------ 1 file changed, 30 insertions(+), 32 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c18a9c8..9fbfd70 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,32 +1,30 @@ -name: github pages - -on: - push: - branches: - - master - -jobs: - build-deploy: - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@master - with: - submodules: true - - - name: Setup Hugo - uses: peaceiris/actions-hugo@v2.2.2 - with: - hugo-version: '0.110.0' - # extended: true - - - name: Build - run: hugo --minify - - - name: Deploy - uses: docker://peaceiris/gh-pages:v2.5.0 - env: - ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} - PUBLISH_BRANCH: gh-pages - PUBLISH_DIR: ./public - with: - emptyCommits: false +name: github pages + +on: + push: + branches: + - master + +jobs: + build-deploy: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.110.0' + # extended: true + + - name: Build + run: hugo --minify + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} + publish_branch: gh-pages + publish_dir: ./public