tangled
alpha
login
or
join now
timtinkers.online
/
lemoncalendar
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
Switched to Tangled workflow
timtinkers.online
7 months ago
d3fcdc64
cfcaf9c7
0/1
deploy.yaml
timeout
5m 1s
+24
-36
2 changed files
expand all
collapse all
unified
split
.github
workflows
deploy.yml
.tangled
workflows
deploy.yaml
-36
.github/workflows/deploy.yml
reviewed
···
1
1
-
name: Deploy
2
2
-
on:
3
3
-
push:
4
4
-
branches: main
5
5
-
pull_request:
6
6
-
branches: main
7
7
-
8
8
-
jobs:
9
9
-
deploy:
10
10
-
name: Deploy
11
11
-
runs-on: ubuntu-latest
12
12
-
13
13
-
permissions:
14
14
-
id-token: write # Needed for auth with Deno Deploy
15
15
-
contents: read # Needed to clone the repository
16
16
-
17
17
-
steps:
18
18
-
- name: Clone repository
19
19
-
uses: actions/checkout@v4
20
20
-
21
21
-
- name: Install Deno
22
22
-
uses: denoland/setup-deno@v2
23
23
-
with:
24
24
-
deno-version: v2.x
25
25
-
26
26
-
- name: Build step
27
27
-
run: "deno task build"
28
28
-
29
29
-
- name: Upload to Deno Deploy
30
30
-
uses: denoland/deployctl@v1
31
31
-
with:
32
32
-
project: "lemoncalendar"
33
33
-
entrypoint: "main.ts"
34
34
-
root: "."
35
35
-
36
36
-
+24
.tangled/workflows/deploy.yaml
reviewed
···
1
1
+
when:
2
2
+
- event: ["push", "pull_request"]
3
3
+
branch: ["main"]
4
4
+
5
5
+
dependencies:
6
6
+
nixpkgs:
7
7
+
- deno
8
8
+
9
9
+
steps:
10
10
+
- name: Build step
11
11
+
command: |
12
12
+
deno task build
13
13
+
14
14
+
- name: Upload to Deno Deploy
15
15
+
environment:
16
16
+
DENO_DEPLOY_PROJECT: lemoncalendar
17
17
+
DENO_DEPLOY_ENTRYPOINT: main.ts
18
18
+
command: |
19
19
+
# 1. Install deployctl and add it to the path for the next command
20
20
+
export PATH="$HOME/.deno/bin:$PATH"
21
21
+
deno install -gArf jsr:@deno/deployctl
22
22
+
23
23
+
# 2. Deploy project
24
24
+
deployctl deploy --project=$DENO_DEPLOY_PROJECT --entrypoint=$DENO_DEPLOY_ENTRYPOINT --prod