Skip to content

Commit

Permalink
Release Kotlin as part of the manual release action
Browse files Browse the repository at this point in the history
Because the tag created didn't trigger the `cd` action.

Also explain the release process in the README.
  • Loading branch information
sbihel committed Jan 29, 2024
1 parent 95f023f commit 4c82158
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 44 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/cd.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,41 @@ jobs:
artifacts: "RustFramework.xcframework.zip"
tag: ${{ github.event.inputs.version }}
name: ${{ github.event.inputs.version }}

kotlin:
runs-on: ubuntu-latest
needs: swift
defaults:
run:
working-directory: ./kotlin
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: "aarch64-linux-android,armv7-linux-androideabi,x86_64-linux-android,i686-linux-android"
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"

- uses: taiki-e/install-action@v2
with:
tool: cargo-ndk
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Publish package
uses: gradle/gradle-build-action@v2
with:
arguments: publish
build-root-directory: ./kotlin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ github.event.inputs.version }}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@
└── WalletSdkRs // Contains the iOS library, with all the generated source files
// and dylibs, as Git is the package manager of Swift
```

## Release

Use the [`release` Github Action](https://github.com/spruceid/wallet-sdk-rs/actions/workflows/release.yml)
which is a manually triggered action.

0 comments on commit 4c82158

Please sign in to comment.