Skip to content

Commit

Permalink
setup the release
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Jun 26, 2024
1 parent ba6aa9c commit bf9efe7
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion .github/workflows/release-kotlin-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,37 @@ jobs:
with:
name: ${{ matrix.target }}
path: bindings_ffi/target/${{ matrix.target }}/release/libxmtpv3.so
retention-days: 1
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

0 comments on commit bf9efe7

Please sign in to comment.