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:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
@@ -19,13 +20,13 @@ jobs:
|
||||
with:
|
||||
ssh-key: ${{ secrets.SSH_KEY }}
|
||||
persist-credentials: false
|
||||
submodules: true # Fetch Hugo themes (true OR recursive)
|
||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||
submodules: true # Fetch Hugo themes (true OR recursive)
|
||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||
|
||||
- name: Build site with Hugo
|
||||
uses: peaceiris/actions-hugo@v3
|
||||
with:
|
||||
hugo-version: 'latest'
|
||||
hugo-version: "latest"
|
||||
extended: true
|
||||
|
||||
- name: Build
|
||||
@@ -41,7 +42,7 @@ jobs:
|
||||
uses: peaceiris/actions-gh-pages@v4
|
||||
with:
|
||||
personal_token: ${{ secrets.GIT_PAGES_TOKEN }}
|
||||
publish_dir: ./public
|
||||
publish_dir: ./public
|
||||
publish_branch: gitea-pages
|
||||
|
||||
- name: Deploy
|
||||
|
||||
Reference in New Issue
Block a user