Skip to content

Fix: Properly remove first character of released tag #19

Fix: Properly remove first character of released tag

Fix: Properly remove first character of released tag #19

Workflow file for this run

name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
- name: Set up Cargo Cache
uses: Swatinem/rust-cache@v2
with:
save-if: false
- name: Run tests
run: cargo test --workspace --verbose
- name: Install JDK
uses: actions/[email protected]
with:
distribution: "temurin"
java-version: "22"
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
- name: Set up Android SDK
uses: android-actions/setup-android@v3
- name: Set up Android NDK
uses: nttld/setup-ndk@v1
with:
link-to-sdk: true
ndk-version: r28-beta1
- name: Java tests
run: gradle test
working-directory: ./java
- name: Publish Java release
run: gradle publish
working-directory: ./java
env:
RELEASE_VERSION: ${{ github.ref_name[1] }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}