Skip to content

Fix missing ref

Fix missing ref #819

Workflow file for this run

name: Publish site
on:
push:
branches:
- main
# limit to one concurrent run per PR/branch,
# and cancel any previous runs still going
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache image files
uses: actions/cache@v4
with:
path: public/img
key: ${{ runner.os }}-images-${{ hashFiles('src/**/*.png', 'src/**/*.jpe?g', 'src/**/*.gif', 'src/**/*.svg') }}
restore-keys: ${{ runner.os }}-images-
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- run: npm install
- run: npm run-script build
env:
CI: true
- name: Deploy to Neocities
uses: bcomnes/deploy-to-neocities@v2
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: false
dist_dir: public