fix: improve entire experience #7
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: Build and Deploy | |
on: [push] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Cache 💾 | |
uses: actions/cache@v2 | |
with: | |
path: ${{ github.workspace }}/.cache | |
key: ${{ runner.os }}-3d-${{ hashFiles('**/yarn.lock') }} | |
- name: Setup Bun Runtime | |
uses: antongolub/action-setup-bun@v1 | |
with: | |
bun-version: 1.0.20 | |
bun-repo: 'Jarred-Sumner/bun-releases-for-updater' | |
cache: false | |
cache-bin: false | |
- name: Install packages | |
run: bun i | |
- name: Build 🧩 | |
run: bun run build | |
env: | |
CI: true | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@3.6.2 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: dist | |
CLEAN: true # Automatically remove deleted files from the deploy branch |