Merge pull request #4 from peetzweg/feat/cuelume-preset-kit #9
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 site to github pages | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| # allow the GITHUB_TOKEN to deploy to Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # one deploy at a time; let the newest win | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install pnpm | |
| uses: pnpm/action-setup@v4 # version comes from the "packageManager" field | |
| - name: install node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: install deps | |
| run: pnpm install --frozen-lockfile | |
| - name: build library + site | |
| run: pnpm run site:build | |
| - uses: actions/configure-pages@v5 | |
| - name: upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: site/dist | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: deploy to github pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |