Add Note for setting up local development environment on M1 Macs (#143) #42
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: Notes Build and Deploy | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- docs | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4.0.2 | |
with: | |
node-version: 20 | |
- uses: oven-sh/setup-bun@v1.2.2 | |
- uses: actions/cache@v4.0.2 | |
with: | |
path: ~/.bun/install/cache | |
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} | |
restore-keys: | | |
${{ runner.os }}-bun- | |
- name: Install all dependencies | |
run: bun install --frozen-lockfile | |
- name: Build | |
run: bun run docs:build | |
- uses: actions/configure-pages@v5.0.0 | |
- uses: actions/upload-pages-artifact@v3.0.1 | |
with: | |
path: .vitepress/dist | |
- name: Deploy | |
id: deployment | |
uses: actions/deploy-pages@v4.0.5 |