2022-09-11 14:52:49 -05:00
|
|
|
name: GitHub Pages
|
2022-09-11 14:29:58 -05:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-09-11 14:52:49 -05:00
|
|
|
branches:
|
|
|
|
- main
|
2022-09-11 14:29:58 -05:00
|
|
|
|
|
|
|
jobs:
|
2022-09-11 14:52:49 -05:00
|
|
|
build-deploy:
|
|
|
|
name: Build and Deploy
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
2022-09-11 14:29:58 -05:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
2022-09-11 14:52:49 -05:00
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
fetch-depth: 0
|
2022-09-11 14:29:58 -05:00
|
|
|
|
2022-09-11 14:52:49 -05:00
|
|
|
- name: Setup Hugo
|
|
|
|
uses: peaceiris/actions-hugo@v2
|
2022-09-11 14:33:37 -05:00
|
|
|
with:
|
2022-09-11 14:52:49 -05:00
|
|
|
hugo-version: "latest"
|
2022-09-11 14:29:58 -05:00
|
|
|
|
2022-09-11 14:52:49 -05:00
|
|
|
- name: Build
|
2022-09-11 16:04:57 -05:00
|
|
|
run: hugo -s exampleSite --themesDir ../.. -d ../docs --baseURL https://nunocoracao.github.io/blowfish/
|
2022-09-11 14:52:49 -05:00
|
|
|
|
|
|
|
- name: Deploy
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_branch: gh-pages
|
2022-09-11 16:08:33 -05:00
|
|
|
publish_dir: ./docs
|