-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Deno Deploy] Add .github/workflows/deploy.yml
- Loading branch information
1 parent
0bb5e8a
commit b4e3743
Showing
1 changed file
with
21 additions
and
10 deletions.
There are no files selected for viewing
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
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: "" |