From f0ceee0bcdc68aab2af8bd8485e65867c773269d Mon Sep 17 00:00:00 2001 From: Bill Zimmerman Date: Thu, 21 Aug 2025 17:02:47 +0200 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ec50c0a9..de298e6b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,3 +44,27 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ github.event.inputs.tag || github.ref }} overwrite: true + + torrent: + needs: build-raspap-image + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Create torrents + uses: devopsx/action-torrent@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + files: | + raspap-bookworm-arm64-lite-*.img.zip + raspap-bookworm-armhf-lite-*.img.zip + + - name: Upload torrents to release + uses: softprops/action-gh-release@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + files: torrents/*.torrent +