feat: Semantic shadow tokens for cards, navbar, buttons #36
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: Deploy | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'prototype/**' | |
| - 'apps/**' | |
| - 'packages/**' | |
| - '.github/workflows/deploy-prototypes.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build toolkit | |
| run: pnpm --filter @real-life-stack/toolkit build | |
| - name: Build reference app | |
| run: pnpm --filter reference build | |
| env: | |
| VITE_BASE_PATH: /real-life-stack/ | |
| - name: Build prototype | |
| run: | | |
| cd prototype | |
| npm ci | |
| npm run build -- --base="/real-life-stack/edge/" | |
| - name: Prepare deployment | |
| run: | | |
| mkdir -p gh-pages/edge | |
| # Reference app at root | |
| cp -R apps/reference/dist/. gh-pages/ | |
| # Prototype at /edge/ | |
| cp -R prototype/dist/. gh-pages/edge/ | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: gh-pages | |
| deploy: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |