toasters.rocks/.github/workflows/main.yml

32 lines
571 B
YAML
Raw Permalink Normal View History

2020-11-29 14:42:29 +00:00
name: GitHub Pages
on:
push:
branches:
2020-11-29 17:49:58 +00:00
- master
2020-11-29 14:42:29 +00:00
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
- name: Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public