mirror of https://github.com/jpanther/congo.git
👷 Upgrade to gh-pages-v3
parent
4ed359ca8a
commit
4d7d0d2352
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue