Skip to content

Commit

Permalink
Create deno.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadxp authored Aug 13, 2023
1 parent fa88877 commit 3d674c6
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish on Deno Deploy

on:
push:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Setup Deno environment
uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- name: Build site
run: deno task build

- name: Deploy to Deno Deploy
uses: denoland/deployctl@v1
with:
project: project-name
import-map: "./import_map.json"
entrypoint: serve.ts

0 comments on commit 3d674c6

Please sign in to comment.