Skip to content

Commit

Permalink
chore: add tg release bot
Browse files Browse the repository at this point in the history
  • Loading branch information
cameri committed Nov 6, 2022
1 parent 64a2c07 commit 00f4775
Show file tree
Hide file tree
Showing 5 changed files with 1,560 additions and 8 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ jobs:
flag-name: Integration
parallel: true
github-token: ${{ secrets.GITHUB_TOKEN }}
finish:
name: Finish
post-tests:
name: Post Tests
needs: [test-units-and-cover, test-integrations-and-cover]
runs-on: ubuntu-latest
if: ${{ always() }}
Expand All @@ -100,4 +100,19 @@ jobs:
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
parallel-finished: true
release:
name: Release
runs-on: ubuntu-latest
needs: [finish]
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,3 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
12 changes: 11 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
"preset": "conventionalcommits"
}],
"@semantic-release/release-notes-generator",
"@semantic-release/github"
"@semantic-release/github",
["semantic-release-telegram", {
"name": "nostr-ts-relay",
"chats": [ -1001670974037 ],
"templates": {
"success" : "A new version of <a href='{repository_url}'>{name}</a> has been released. Current version is <b>{version}</b>"
},
"assets" : [
{ "glob": [ "./*" ], "name": "nostr-ts-relay-{version}.zip" }
]
}]
]
}
Loading

0 comments on commit 00f4775

Please sign in to comment.