From 3f482591c82d189521d871ec9b8f49055abe401b Mon Sep 17 00:00:00 2001 From: Joscha Date: Fri, 24 Jan 2025 02:49:07 +0100 Subject: [PATCH] Release automatically via CI --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 53b6213..6013c0b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -97,3 +97,34 @@ jobs: with: name: tta-android path: target/release/tta-app.apk + + release: + runs-on: ubuntu-latest + if: ${{ startsWith(github.ref, 'refs/tags/v') }} + needs: + - build-linux + - build-windows + - build-android + permissions: + contents: write + steps: + - name: Download artifacts + uses: actions/download-artifact@v4 + + - name: List artifacts + run: ls -l + + - name: Zip artifacts + run: | + zip -r tta-linux.zip tta-linux + zip -r tta-windows.zip tta-windows + mv tta-android tta-app.apk + + - name: List artifacts again + run: ls -l + + - name: Create new release + uses: ncipollo/release-action@v1 + with: + artifacts: tta-linux.zip,tta-windows.zip,tta-app.apk + body: Automated release