-
Notifications
You must be signed in to change notification settings - Fork 1
/
.build.yml
37 lines (36 loc) · 889 Bytes
/
.build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
image: alpine/edge
packages:
- deno
secrets:
- 0323bc6f-a046-4b96-8496-2bac6e7ee107
- 6a295705-4fb6-451c-990c-9a12b0aa0dc2
environment:
dir: wcarbon
triggers:
- action: email
condition: failure
to: tim@harek.no
tasks:
- test: |
cd $dir
deno task check
deno task test
- check: |
cd $dir
if [ "$(git rev-parse origin/main)" != "$(git rev-parse HEAD)" ]; then \
complete-build; \
fi
- new_release: |
set +x
export JSR_API=$(cat ~/jsr_timharek)
cd $dir
deno publish --allow-slow-types --token $JSR_API
set -x
- mirror: |
cd $dir
git remote add github git@github.com:timharek/wcarbon.git
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
git push github main
if [ "$(git describe --exact-match --tags HEAD)" ]; then \
git push --tags github; \
fi