Skip to content

Commit 6e3a7ff

Browse files
committed
workflows: release on tag
1 parent 4978839 commit 6e3a7ff

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/create.yml

Lines changed: 14 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,14 @@ 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+
# make it work 1st then make it pretty
23+
transmission-show -m watch/* >> release-notes.md
24+
transmission-show watch/* >> release-notes.md
25+
- name: Release
26+
uses: softprops/action-gh-release@v2
27+
if: github.ref_type == 'tag'
28+
with:
29+
body_path: release-notes.md
30+
files: watch/*

0 commit comments

Comments
 (0)