Skip to content

Commit

Permalink
try deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
nonrational committed Oct 23, 2024
1 parent dfb3a26 commit 2bdeb46
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on: push

jobs:
test:
name: test
runs-on: ubuntu-latest

steps:
Expand All @@ -19,3 +18,26 @@ jobs:
- 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

0 comments on commit 2bdeb46

Please sign in to comment.