ci: enable manual workflow dispatch for publish workflow and adjust minor formatting.
Some checks failed
Hugo Publish CI / build-and-deploy (push) Failing after 17s
Some checks failed
Hugo Publish CI / build-and-deploy (push) Failing after 17s
This commit is contained in:
@@ -4,6 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
@@ -19,13 +20,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ssh-key: ${{ secrets.SSH_KEY }}
|
ssh-key: ${{ secrets.SSH_KEY }}
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
submodules: true # Fetch Hugo themes (true OR recursive)
|
submodules: true # Fetch Hugo themes (true OR recursive)
|
||||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||||
|
|
||||||
- name: Build site with Hugo
|
- name: Build site with Hugo
|
||||||
uses: peaceiris/actions-hugo@v3
|
uses: peaceiris/actions-hugo@v3
|
||||||
with:
|
with:
|
||||||
hugo-version: 'latest'
|
hugo-version: "latest"
|
||||||
extended: true
|
extended: true
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
@@ -41,7 +42,7 @@ jobs:
|
|||||||
uses: peaceiris/actions-gh-pages@v4
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
with:
|
with:
|
||||||
personal_token: ${{ secrets.GIT_PAGES_TOKEN }}
|
personal_token: ${{ secrets.GIT_PAGES_TOKEN }}
|
||||||
publish_dir: ./public
|
publish_dir: ./public
|
||||||
publish_branch: gitea-pages
|
publish_branch: gitea-pages
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
|
|||||||
Reference in New Issue
Block a user