works locally #26
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: create torrent | |
| on: | |
| workflow_dispatch: | |
| push: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get install -y transmission-cli | |
| pip3 install py3createtorrent bencodepy | |
| - name: download files and create torrent | |
| run: ./create_monero_torrent.sh | |
| - name: create release notes | |
| run: | | |
| { | |
| echo "### 🧲 Link" | |
| echo '```' | |
| transmission-show -m watch/* | |
| echo '```' | |
| echo "### Torrent info" | |
| echo '```' | |
| transmission-show watch/* | |
| echo '```' | |
| } >> release-notes.md | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| if: github.ref_type == 'tag' | |
| with: | |
| body_path: release-notes.md | |
| files: watch/* |