Skip to content

Rename build-and-publish.yaml to build-and-publish-neocities.yaml #1

Rename build-and-publish.yaml to build-and-publish-neocities.yaml

Rename build-and-publish.yaml to build-and-publish-neocities.yaml #1

name: Build and publish (Neocities)
on:
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency: # prevent concurrent deploys doing strange things
group: build-and-publish-neocities
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.135.0'
# extended: true
- name: Build
run: hugo --minify
- name: Deploy to neocities
uses: bcomnes/deploy-to-neocities@v1
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: false
dist_dir: ./public