Create main.yml

This commit is contained in:
Andre Beging
2020-02-11 15:04:48 +01:00
committed by GitHub
parent 9cd2447616
commit a73043a65c

30
.github/workflows/main.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: github pages
on:
push:
branches:
- master
jobs:
build-deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.2.0
with:
hugo-version: 'latest'
- name: Build
run: hugo --gc --cleanDestinationDir --baseURL https://ndws.beging.de/ -v
- name: Check dir
run: ls public/media
- name: Deploy
uses: peaceiris/actions-gh-pages@v2.4.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public