Skip to content

Instantly share code, notes, and snippets.

@bipe
Last active April 16, 2026 22:40
Show Gist options
  • Select an option

  • Save bipe/a39be329d59bf8a06805690e8d046167 to your computer and use it in GitHub Desktop.

Select an option

Save bipe/a39be329d59bf8a06805690e8d046167 to your computer and use it in GitHub Desktop.
Deploy to neocities simple github action yaml
name: Deploy to neocities
on:
push:
branches:
- main # trigger this action only with commits on the 'main' branch.
concurrency: # prevent concurrent deploys doing starnge things
group: deploy-to-neocities
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy to neocities # You can customize this if you want
uses: bcomnes/deploy-to-neocities@master
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: true # true: delete neocities files that doesn't exist on the repo. false: ignore these files
dist_dir: public #the folder in which the site is
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment