Neocities CD #1728
This file contains hidden or 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: 20 | |
| - name: Install deps & build site | |
| run: | | |
| npm ci | |
| npm run build | |
| - name: Deploy to Neocities | |
| uses: bcomnes/deploy-to-neocities@v3 | |
| with: | |
| api_key: ${{ secrets.NEOCITIES_API_TOKEN }} | |
| cleanup: true | |
| neocities_supporter: true | |
| dist_dir: _site | |
| protected_files: "*.png" |