blog/.github/workflows/ci.yml

18 lines
442 B
YAML
Raw Normal View History

2023-04-07 21:44:23 +00:00
name: Publish site
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
2023-04-07 22:17:36 +00:00
- uses: actions/checkout@v1
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 10:52:13 +00:00
- uses: kognise/neocities-deploy-action@v1
2023-04-07 21:44:23 +00:00
if: ${{ github.ref == 'refs/heads/main' }}
with:
2023-04-08 10:52:13 +00:00
neocities_token : ${{ secrets.NEOCITIES_API_KEY }}
directory: 'public/'