Skip to content

Commit 00f4775

Browse files
committed
chore: add tg release bot
1 parent 64a2c07 commit 00f4775

File tree

5 files changed

+1560
-8
lines changed

5 files changed

+1560
-8
lines changed

.github/workflows/checks.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ jobs:
9090
flag-name: Integration
9191
parallel: true
9292
github-token: ${{ secrets.GITHUB_TOKEN }}
93-
finish:
94-
name: Finish
93+
post-tests:
94+
name: Post Tests
9595
needs: [test-units-and-cover, test-integrations-and-cover]
9696
runs-on: ubuntu-latest
9797
if: ${{ always() }}
@@ -100,4 +100,19 @@ jobs:
100100
uses: coverallsapp/github-action@master
101101
with:
102102
github-token: ${{ secrets.GITHUB_TOKEN }}
103-
parallel-finished: true
103+
parallel-finished: true
104+
release:
105+
name: Release
106+
runs-on: ubuntu-latest
107+
needs: [finish]
108+
if: github.ref == 'refs/heads/master'
109+
steps:
110+
- name: Checkout repository
111+
uses: actions/checkout@v3
112+
- uses: actions/setup-node@v3
113+
with:
114+
node-version-file: .nvmrc
115+
- name: Release
116+
env:
117+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
118+
run: npx semantic-release

.github/workflows/release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,3 @@ jobs:
101101
push: true
102102
tags: ${{ steps.meta.outputs.tags }}
103103
labels: ${{ steps.meta.outputs.labels }}
104-
- name: Release
105-
env:
106-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107-
run: npx semantic-release

.releaserc.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
"preset": "conventionalcommits"
66
}],
77
"@semantic-release/release-notes-generator",
8-
"@semantic-release/github"
8+
"@semantic-release/github",
9+
["semantic-release-telegram", {
10+
"name": "nostr-ts-relay",
11+
"chats": [ -1001670974037 ],
12+
"templates": {
13+
"success" : "A new version of <a href='{repository_url}'>{name}</a> has been released. Current version is <b>{version}</b>"
14+
},
15+
"assets" : [
16+
{ "glob": [ "./*" ], "name": "nostr-ts-relay-{version}.zip" }
17+
]
18+
}]
919
]
1020
}

0 commit comments

Comments
 (0)