From 1d46afde705fc72bfb2ae2f19855c68849bca9cf Mon Sep 17 00:00:00 2001 From: Groovin Date: Thu, 25 Apr 2024 18:22:16 -0400 Subject: [PATCH] Update release to use env to get rid of warnings in action --- .github/workflows/release.yml | 10 +++++----- gradle.properties | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd2a9be..afc2d8f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: - name: Get version id: get_version - run: echo ::set-output name=VERSION::$(./gradlew -q printVersion) + run: echo "VERSION=$(./gradlew -q printVersion)" >> $GITHUB_ENV - name: Create Release id: create_release @@ -31,8 +31,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} with: - tag_name: v${{ steps.get_version.outputs.VERSION }} - release_name: Release v${{ steps.get_version.outputs.VERSION }} + tag_name: v${{ env.VERSION }} + release_name: Release v${{ env.VERSION }} draft: false prerelease: false @@ -43,6 +43,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./build/libs/TeamsExpansion-${{ steps.get_version.outputs.VERSION }}.jar - asset_name: TeamsExpansion-${{ steps.get_version.outputs.VERSION }}.jar + asset_path: ./build/libs/TeamsExpansion-${{ env.VERSION }}.jar + asset_name: TeamsExpansion-${{ env.VERSION }}.jar asset_content_type: application/java-archive diff --git a/gradle.properties b/gradle.properties index 1e0170b..0a1b451 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ kotlin.code.style=official group=dev.groovin -version=1.0.1 +version=1.0.2 plugin_main=dev.groovin.teamsexpansion.Plugin