Skip to content

Commit 1e45dd4

Browse files
chore: switch to AOT build deployment (#1641)
1 parent 6028076 commit 1e45dd4

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: main
7+
8+
jobs:
9+
deploy:
10+
name: Deploy
11+
runs-on: ubuntu-latest
12+
13+
permissions:
14+
id-token: write # Needed for auth with Deno Deploy
15+
contents: read # Needed to clone the repository
16+
17+
steps:
18+
- name: Clone repository
19+
uses: actions/checkout@v3
20+
21+
- name: Install Deno
22+
uses: denoland/setup-deno@v1
23+
with:
24+
deno-version: v1.x
25+
26+
- name: Build step
27+
working-directory: ./www
28+
run: "deno task build" # 📝 Update the build command(s) if necessary
29+
30+
- name: Upload to Deno Deploy
31+
uses: denoland/deployctl@v1
32+
with:
33+
project: "fresh" # 📝 Update the deploy project name if necessary
34+
entrypoint: "./www/main.ts" # 📝 Update the entrypoint if necessary
35+
root: "."

0 commit comments

Comments
 (0)