fix(www): deploy/builder #236
Workflow file for this run
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: Continuous Integration | |
on: | |
push: | |
branches: main | |
pull_request: | |
branches: main | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: denoland/setup-deno@v2 | |
- run: deno task lint | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
strategy: | |
fail-fast: false | |
matrix: | |
runtime: | |
- deno | |
- node | |
- bun | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: denoland/setup-deno@v2 | |
- uses: actions/setup-node@v4 | |
if: matrix.runtime == 'node' | |
with: | |
node-version: 22.x | |
- run: npm ci | |
if: matrix.runtime == 'node' | |
- uses: oven-sh/setup-bun@v2 | |
if: matrix.runtime == 'bun' | |
- run: bun install | |
if: matrix.runtime == 'bun' | |
- run: deno task test:${{ matrix.runtime }} | |
preview: | |
name: Deploy | |
runs-on: ubuntu-latest | |
# needs: | |
# - lint | |
# - test | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: denoland/setup-deno@v2 | |
- name: Run deno task deploy:setup-github-actions | |
run: deno task deploy:setup-github-actions | |
id: setup_github_actions | |
- run: deno install | |
- uses: denoland/deployctl@v1 | |
with: | |
project: ${{ steps.setup_github_actions.outputs.project }} | |
entrypoint: ${{ steps.setup_github_actions.outputs.entrypoint }} | |
import-map: ${{ steps.setup_github_actions.outputs.import_map }} | |
include: ${{ steps.setup_github_actions.outputs.include }} | |
exclude: ${{ steps.setup_github_actions.outputs.exclude }} | |
publish: | |
name: Publish | |
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
runs-on: ubuntu-latest | |
needs: | |
- lint | |
- test | |
- preview | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: denoland/setup-deno@v2 | |
- run: deno publish |