From 4d7d0d23523c1e6f99c5f03287fea935610ef259 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Wed, 11 Aug 2021 20:41:25 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Upgrade=20to=20gh-pages-v3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gh-pages.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index a59c8860..ba550206 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -7,24 +7,29 @@ on: jobs: build-deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 + with: + submodules: true + fetch-depth: 0 - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: hugo-version: "latest" - extended: true - name: Build working-directory: ./exampleSite run: hugo --minify --themesDir ../.. --baseURL https://jpanther.github.io/Congo/ - name: Deploy - uses: peaceiris/actions-gh-pages@v2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PUBLISH_BRANCH: gh-pages - PUBLISH_DIR: ./exampleSite/public + uses: peaceiris/actions-gh-pages@v3 + if: ${{ github.ref == 'refs/heads/stable' }} + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_branch: gh-pages + publish_dir: ./exampleSite/public