refactor(curves)!: replace flo-curves with kurbo
#289
Workflow file for this run
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: page | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| env: | |
| # Relative path to the root of the GitHub Pages site. | |
| PAGES_BASE_PATH: /monoxide/ | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: pnpm/action-setup@v6 | |
| with: | |
| version: latest | |
| - uses: actions/setup-node@v7 | |
| with: | |
| cache: pnpm | |
| cache-dependency-path: '**/pnpm-lock.yaml' | |
| - name: Install deps | |
| run: pnpm install --frozen-lockfile | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Create static site | |
| env: | |
| VITE_BASE_URL: ${{ env.PAGES_BASE_PATH }} | |
| run: cargo xtask ssg | |
| # https://github.com/actions/upload-pages-artifact#example-permissions-fix-for-linux | |
| - name: Fix permissions | |
| run: | | |
| chmod -c -R +rX "./target/ssg" | while read line; do | |
| echo "::warning title=Invalid file permissions automatically fixed::$line" | |
| done | |
| - name: Upload artifact | |
| if: github.event_name == 'push' | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: ./target/ssg | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |