Skip to content

Commit c9355d0

Browse files
committed
ci: release on tag
1 parent 4978839 commit c9355d0

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

.github/workflows/create.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ name: create torrent
22

33
on:
44
workflow_dispatch:
5+
push:
56

67
jobs:
78
build:
89
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
912
steps:
1013
- uses: actions/checkout@v4
1114
- name: Install dependencies
@@ -14,5 +17,21 @@ jobs:
1417
pip3 install py3createtorrent bencodepy
1518
- name: download files and create torrent
1619
run: ./create_monero_torrent.sh
17-
- name: show-magnet link
18-
run: transmission-show -m watch/*
20+
- name: create release notes
21+
run: |
22+
{
23+
echo "### 🧲 Link"
24+
echo '```'
25+
transmission-show -m watch/*
26+
echo '```'
27+
echo "### Torrent info"
28+
echo '```'
29+
transmission-show watch/*
30+
echo '```'
31+
} >> release-notes.md
32+
- name: Release
33+
uses: softprops/action-gh-release@v2
34+
if: github.ref_type == 'tag'
35+
with:
36+
body_path: release-notes.md
37+
files: watch/*

0 commit comments

Comments
 (0)