Merge pull request #393 from yowainwright/revert-version #330
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: gh-pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-deploy: | |
| concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout ποΈ | |
| uses: actions/checkout@v4 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - uses: oven-sh/setup-bun@v2 | |
| name: Install Bun | |
| with: | |
| bun-version: 1.3.1 | |
| - name: Get Bun cache directory | |
| id: bun-cache | |
| run: | | |
| echo "bun_cache_dir=$(bun pm cache dir)" >> $GITHUB_OUTPUT | |
| - uses: actions/cache@v4 | |
| name: Setup Bun cache | |
| with: | |
| path: ${{ steps.bun-cache.outputs.bun_cache_dir }} | |
| key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} | |
| restore-keys: | | |
| ${{ runner.os }}-bun- | |
| - run: bun install | |
| - run: cd app && bun run build | |
| - run: touch app/dist/.nojekyll | |
| - name: Deploy π | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| folder: app/dist |