bored #240
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: Deploy to Neocities | |
| on: | |
| push: | |
| branches: | |
| - v4 | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "neocities" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 # Fetch all history for git info | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Build Quartz | |
| run: npx quartz build | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: public | |
| path: public | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: public | |
| path: public | |
| - name: Deploy to Neocities | |
| id: deployment | |
| uses: bcomnes/deploy-to-neocities@v3 | |
| with: | |
| api_key: ${{ secrets.NEOCITIES_API_KEY }} | |
| cleanup: false | |
| neocities_supporter: false # set this to true if you have a supporter account and want to bypass unsupported files filter. | |
| preview_before_deploy: true # print a deployment plan prior to waiting for files to upload. | |
| dist_dir: public |