Skip to content

Commit

Permalink
feat : use tagVersion in release
Browse files Browse the repository at this point in the history
  • Loading branch information
fhebuterne committed Jun 16, 2024
1 parent 8936ad5 commit a7b6a6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pickspawner-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ jobs:
with:
distribution: 'temurin'
java-version: 17
- name: Get the tag version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Install spigot nms dependencies
run: bash ./install-dependency-in-cache.sh
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean build -PbuildVersion=1.18.2
run: ./gradlew clean build -PbuildVersion=1.18.2 -DtagVersion=${{ steps.get_version.outputs.VERSION }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -31,9 +34,6 @@ jobs:
release_name: ${{ github.ref }}
draft: false
prerelease: false
- name: Get the tag version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Upload Release Jar
id: upload-release-jar
uses: actions/upload-release-asset@v1
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

allprojects {
group = "fr.fabienhebuterne"
version = "3.6.0"
version = System.getProperty("tagVersion") ?: "SNAPSHOT"

apply(plugin = "kotlin")

Expand Down

0 comments on commit a7b6a6d

Please sign in to comment.