Switch to Node.js based GitHub Actions workflow and remove Nix-based … #4
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: Build and Deploy | |
| on: | |
| push: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| name: Build and Deploy Site | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 23 | |
| - name: Restore cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| node_modules | |
| .image-cache | |
| key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Build with Node | |
| run: | | |
| npm ci | |
| npx @11ty/eleventy | |
| - name: Deploy to Neocities | |
| uses: bcomnes/deploy-to-neocities@v2 | |
| with: | |
| api_token: ${{ secrets.NEOCITIES_API_KEY }} | |
| cleanup: true | |
| dist_dir: _site | |
| - name: Deploy to Bunny | |
| uses: R-J-dev/bunny-deploy@v2.0.6 | |
| with: | |
| access-key: ${{ secrets.BUNNY_ACCESS_KEY }} | |
| directory-to-upload: _site | |
| storage-endpoint: "https://storage.bunnycdn.com" | |
| storage-zone-name: "buttonkin" | |
| storage-zone-password: ${{ secrets.BUNNY_STORAGE_ZONE_PASSWORD }} | |
| concurrency: "5" | |
| enable-delete-action: true | |
| enable-purge-pull-zone: true | |
| pull-zone-id: "4605820" | |
| replication-timeout: "15000" |