softinio.com/.github/workflows/build.yml

32 lines
611 B
YAML
Raw Normal View History

name: Build and Deploy
2020-07-24 23:19:45 -07:00
on:
push:
branches:
- master
jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
2020-07-24 23:19:45 -07:00
- uses: actions/checkout@v2
with:
submodules: true
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
2020-09-06 22:07:03 -07:00
hugo-version: '0.74.2'
2020-07-24 23:19:45 -07:00
extended: true
- name: Hugo Build
2020-07-24 23:19:45 -07:00
run: hugo --minify
2020-09-06 22:07:03 -07:00
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
cname: www.softinio.com