softinio.com/.github/workflows/deploy.yml

29 lines
590 B
YAML
Raw Normal View History

name: github pages
on:
push:
branches:
- main # Set a branch that will trigger a deployment
jobs:
deploy:
runs-on: ubuntu-latest
steps:
2022-10-16 08:51:32 -07:00
- uses: actions/checkout@v3
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.108.0'
extended: true
- name: Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public