Neocities CD #162
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Neocities CD | |
on: | |
push: | |
branches: [main] | |
workflow_run: | |
workflows: ["bookshelf"] | |
types: | |
- completed | |
concurrency: # prevent concurrent deploys doing strange things | |
group: deploy-to-neocities | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.20.4 | |
- name: Install deps & build site | |
run: | | |
npm i | |
npm run build | |
- name: Deploy to Neocities | |
uses: bcomnes/deploy-to-neocities@v3 | |
with: | |
api_token: ${{ secrets.NEOCITIES_API_TOKEN }} | |
cleanup: true | |
dist_dir: _site | |
protected_files: "*.png" |