Skip to content

try deploy

try deploy #34

Workflow file for this run

name: CI
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Install Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- run: deno test --allow-env
- run: deno fmt --check
- run: deno lint
deploy:
runs-on: ubuntu-latest
needs: test
if: github.repository_owner == 'nonrational'
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Install Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Add CANIUSE_AS_OF_EPOCH to .env
run: deno scripts/print-as-of-env.ts | tee -a .env
- name: Build step
run: 'deno task build'
- run: deno install -gArf jsr:@deno/deployctl
- run: deployctl deploy --entrypoint=./main.ts