blog/.github/workflows/ci.yml
2023-04-08 12:52:13 +02:00

18 lines
442 B
YAML

name: Publish site
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: setup hugo
uses: peaceiris/actions-hugo@v2
- name: build
run: hugo --minify
- uses: kognise/neocities-deploy-action@v1
if: ${{ github.ref == 'refs/heads/main' }}
with:
neocities_token : ${{ secrets.NEOCITIES_API_KEY }}
directory: 'public/'