mirror of
https://github.com/GeekOops/doc.git
synced 2024-05-20 05:12:21 +00:00
Add Actions workflow
This commit is contained in:
parent
c70e25961d
commit
2ea2cb555c
32
.github/workflows/pages.yml
vendored
Normal file
32
.github/workflows/pages.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
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: ./geekoops/public
|
||||
with:
|
||||
emptyCommits: false
|
||||
commitMessage: ${{ github.event.head_commit.message }}
|
Loading…
Reference in a new issue