File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111 steps :
1212 - uses : actions/checkout@v2
1313 - uses : gradle/wrapper-validation-action@v1
14- - name : Get the release version
15- id : tag
16- run : echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
1714 - name : Set up Java 1.8
1815 uses : actions/setup-java@v1
1916 # dokka doesn't support Java 11
2926 - name : Build library with Gradle
3027 run : ./gradlew clean build
3128 - name : Publish library with Gradle
32- run : ./gradlew publish -Pversion=${{ steps.tag.outputs.result }}
29+ run : |
30+ NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
31+ echo "New version: ${NEW_VERSION}"
32+ ./gradlew publish -Pversion=${NEW_VERSION}
3333 env :
3434 SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
3535 SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
You can’t perform that action at this time.
0 commit comments