diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45fc0e9..864bd47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,6 @@ on: push: branches: - main - workflow_dispatch: jobs: test: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 17cd9e0..aff8d00 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,7 +2,6 @@ name: Deploy library on: release: types: [published] - workflow_dispatch: jobs: build: @@ -23,5 +22,6 @@ jobs: - name: Release library run: ./gradlew ksecurestorage:publish env: + RELEASE_TAG_NAME: ${{ github.event.release.tag_name }} GH_USER: ${{ secrets.GH_USER }} GH_TOKEN: ${{ secrets.GH_PUBLISH_TOKEN }} \ No newline at end of file diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index bcc0610..117371e 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } group = "io.github.alexandereggers" -version = "0.0.2" +version = (System.getenv("RELEASE_TAG_NAME") ?: "v0.0.0-local").replace("v", "") kotlin { androidTarget {