diff --git a/.github/workflows/torrent.yml b/.github/workflows/torrent.yml new file mode 100644 index 00000000..ac5531ad --- /dev/null +++ b/.github/workflows/torrent.yml @@ -0,0 +1,27 @@ +name: Torrent Generation + +on: + workflow_dispatch + +jobs: + torrent: + 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 to release + uses: softprops/action-gh-release@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + files: torrents/*.torrent