diff --git a/.github/workflows/buildRelease.yml b/.github/workflows/buildRelease.yml index 8847fba..a238dbf 100644 --- a/.github/workflows/buildRelease.yml +++ b/.github/workflows/buildRelease.yml @@ -12,13 +12,14 @@ jobs: steps: - uses: actions/checkout@v1 - name: Get tag name - uses: olegtarasov/get-tag@v1 + uses: olegtarasov/get-tag@v2.1.1 + id: getTag - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: java-version: 1.8 - name: Build with Gradle - run: ./gradlew build -Pversion="${{ env.GITHUB_TAG_NAME }}" + run: ./gradlew build -Pversion="${{ steps.getTag.outputs.tag }}" - name: Get Release Upload URL uses: actions/github-script@0.3.0 with: @@ -33,6 +34,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ env.UPLOADURL }} - asset_path: ./build/libs/ExponentialPower-${{ env.GITHUB_TAG_NAME }}.jar - asset_name: ExponentialPower-${{ env.GITHUB_TAG_NAME }}.jar + asset_path: ./build/libs/ExponentialPower-${{ steps.getTag.outputs.tag }}.jar + asset_name: ExponentialPower-${{ steps.getTag.outputs.tag }}.jar asset_content_type: application/java-archive \ No newline at end of file