diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 2b327785..abe7b975 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -59,7 +59,33 @@ jobs: targetPlatform: ${{ matrix.targetPlatform }} # customParameters: '-myParameter myValue -myBoolean -ThirdParameter andItsValue' + - name: Zip build artifacts + run: | + mkdir -p zipped_builds + zip -r zipped_builds/build_${{ matrix.targetPlatform }}.zip build/${{ matrix.targetPlatform }} + - uses: actions/upload-artifact@v4 with: name: Build - path: build \ No newline at end of file + path: build + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.PACKAGE_TOKEN }} + with: + tag_name: ${{ github.sha }} + release_name: Release ${{ github.sha }} + draft: false + prerelease: false + + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.PACKAGE_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: zipped_builds/build_${{ matrix.targetPlatform }}.zip + asset_name: build_${{ matrix.targetPlatform }}.zip + asset_content_type: application/zip \ No newline at end of file