Skip to content

Commit

Permalink
[Deno Deploy] Add .github/workflows/deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
deno-deploy[bot] authored Mar 25, 2024
1 parent 0bb5e8a commit b4e3743
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
name: Deploy

on: push
on:
push:
branches: main
pull_request:
branches: main

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest

permissions:
id-token: write
contents: read
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository

steps:
- uses: actions/checkout@v4
- name: Clone repository
uses: actions/checkout@v3

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

- run: deno task build
- name: Build step
run: "deno task build"

- uses: denoland/deployctl@v1
- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: durov
entrypoint: main.ts
project: "durov"
entrypoint: ""
root: ""

0 comments on commit b4e3743

Please sign in to comment.