2023-04-07 21:44:23 +00:00
|
|
|
name: Publish site
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-04-08 11:13:51 +00:00
|
|
|
- uses: actions/checkout@v3
|
2023-04-08 10:48:05 +00:00
|
|
|
- name: setup hugo
|
|
|
|
uses: peaceiris/actions-hugo@v2
|
2023-04-08 10:46:10 +00:00
|
|
|
- name: build
|
|
|
|
run: hugo --minify
|
2023-04-08 11:13:51 +00:00
|
|
|
- uses: bcomnes/deploy-to-neocities@v1
|
2023-04-07 21:44:23 +00:00
|
|
|
if: ${{ github.ref == 'refs/heads/main' }}
|
|
|
|
with:
|
2023-04-08 11:13:51 +00:00
|
|
|
api_token: ${{ secrets.NEOCITIES_API_KEY }}
|
|
|
|
dist_dir: public
|