Skip to content

Commit

Permalink
Update release to use env to get rid of warnings in action
Browse files Browse the repository at this point in the history
  • Loading branch information
Groovin-Dev committed Apr 25, 2024
1 parent 1c682b5 commit 1d46afd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ 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
uses: actions/create-release@v1
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

Expand All @@ -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
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1d46afd

Please sign in to comment.