👷 Upgrade to gh-pages-v3

pull/155/head
James Panther 2021-08-11 20:41:25 +10:00
parent 4ed359ca8a
commit 4d7d0d2352
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
1 changed files with 13 additions and 8 deletions

View File

@ -7,24 +7,29 @@ on:
jobs: jobs:
build-deploy: build-deploy:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: Setup Hugo - name: Setup Hugo
uses: peaceiris/actions-hugo@v2 uses: peaceiris/actions-hugo@v2
with: with:
hugo-version: "latest" hugo-version: "latest"
extended: true
- name: Build - name: Build
working-directory: ./exampleSite working-directory: ./exampleSite
run: hugo --minify --themesDir ../.. --baseURL https://jpanther.github.io/Congo/ run: hugo --minify --themesDir ../.. --baseURL https://jpanther.github.io/Congo/
- name: Deploy - name: Deploy
uses: peaceiris/actions-gh-pages@v2 uses: peaceiris/actions-gh-pages@v3
env: if: ${{ github.ref == 'refs/heads/stable' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with:
PUBLISH_BRANCH: gh-pages github_token: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_DIR: ./exampleSite/public publish_branch: gh-pages
publish_dir: ./exampleSite/public