diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml deleted file mode 100644 index d0430513..00000000 --- a/.github/workflows/cd.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: cd - -on: - push: - tags: - - '*' - -jobs: - main: - runs-on: ubuntu-latest - 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.ref_name }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 196716dd..deced24d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/README.md b/README.md index fd45febf..19863f2a 100644 --- a/README.md +++ b/README.md @@ -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.