ci: fix build #163
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: github-pages | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
id-token: write | |
contents: write | |
env: | |
TURBO_TELEMETRY_DISABLED: 1 | |
jobs: | |
cache-and-install: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup turborepo cache | |
uses: dtinth/setup-github-actions-caching-for-turbo@v1 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build apps and packages | |
run: pnpm build && pnpm build:website | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4.5.0 | |
with: | |
branch: gh-pages | |
folder: ./website/dist |