github.io/.github/workflows/gh-pages.yml

35 lines
741 B
YAML
Raw Normal View History

2022-05-24 22:32:33 +00:00
name: GitHub Pages
2022-03-29 23:21:05 +00:00
on:
push:
branches:
- master
2022-05-24 22:32:33 +00:00
2022-03-29 23:21:05 +00:00
jobs:
deploy:
2022-12-16 12:40:36 +00:00
runs-on: ubuntu-22.04
2022-03-29 23:21:05 +00:00
steps:
- name: Git Checkout
uses: actions/checkout@v2
2022-04-07 15:55:59 +00:00
with:
# submodules: true
fetch-depth: 0
2022-05-24 22:32:33 +00:00
- name: npm install
uses: bahmutov/npm-install@v1
2022-05-24 22:32:33 +00:00
2022-03-29 23:21:05 +00:00
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
2022-04-07 15:58:36 +00:00
extended: true
2022-05-24 22:32:33 +00:00
2022-03-29 23:21:05 +00:00
- name: Build
2022-05-24 22:32:33 +00:00
run: hugo -e prod --minify --baseURL https://io.sivert.pw
2022-03-29 23:21:05 +00:00
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
2022-05-24 22:32:33 +00:00
publish_dir: ./public