mirror of
https://github.com/GeekOops/doc.git
synced 2024-05-20 05:12:21 +00:00
33 lines
669 B
YAML
33 lines
669 B
YAML
name: hugo publish
|
|
|
|
'on':
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
submodules: true
|
|
ssh-key: ''
|
|
|
|
- name: Setup Hugo
|
|
uses: peaceiris/actions-hugo@v2
|
|
|
|
- name: Build
|
|
run: hugo --minify
|
|
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v2
|
|
env:
|
|
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
|
EXTERNAL_REPOSITORY: GeekOops/geekoops.github.io
|
|
PUBLISH_BRANCH: main
|
|
PUBLISH_DIR: ./public
|
|
with:
|
|
emptyCommits: false
|
|
commitMessage: ${{ github.event.head_commit.message }}
|