From bf9efe7f2fd2cbd7151e637a50e00a76c6e1115b Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Tue, 25 Jun 2024 17:23:17 -0700 Subject: [PATCH] setup the release --- .github/workflows/release-kotlin-bindings.yml | 35 ++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-kotlin-bindings.yml b/.github/workflows/release-kotlin-bindings.yml index d10b73820..f268282da 100644 --- a/.github/workflows/release-kotlin-bindings.yml +++ b/.github/workflows/release-kotlin-bindings.yml @@ -65,4 +65,37 @@ jobs: with: name: ${{ matrix.target }} path: bindings_ffi/target/${{ matrix.target }}/release/libxmtpv3.so - retention-days: 1 \ No newline at end of file + retention-days: 1 + + package-kotlin: + needs: [build-linux] + runs-on: warp-ubuntu-latest-x64-8x + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Download artifacts + uses: actions/download-artifact@v3 + with: + path: bindings_ffi/target + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: kotlin-bindings-${{ steps.slug.outputs.sha7 }} + release_name: Kotlin-Bindings-${{ steps.slug.outputs.sha7 }} + draft: false + prerelease: true + + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./bindings_ffi/LibXMTPKotlinFFI.zip + asset_name: LibXMTPKotlinFFI.zip + asset_content_type: application/zip