Add Actions workflow

This commit is contained in:
Felix Niederwanger 2021-05-05 15:47:37 +02:00
parent c70e25961d
commit 2ea2cb555c
Signed by: phoenix
GPG key ID: 31860289A704FB3C

32
.github/workflows/pages.yml vendored Normal file
View 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 }}