diff --git a/.github/workflows/maven-central-publish.yml b/.github/workflows/maven-central-publish.yml index c6548e51..e94fcfed 100644 --- a/.github/workflows/maven-central-publish.yml +++ b/.github/workflows/maven-central-publish.yml @@ -54,6 +54,7 @@ jobs: unzip staging/central-bundle.zip -d staging echo "JAR_FILE_PATH=staging/io/9tiger/db2rest/${{ github.event.release.tag_name }}" >> $GITHUB_ENV echo "JAR_FILE=db2rest-${{ github.event.release.tag_name }}.jar" >> $GITHUB_ENV + echo "JAR_PATH=${{ env.JAR_FILE_PATH }}/${{ env.JAR_FILE }}" >> $GITHUB_ENV - name: Archive central-bundle JAR artifacts uses: actions/upload-artifact@v4 @@ -68,13 +69,6 @@ jobs: # MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} # MAVEN_GPG_KEY: ${{ secrets.MAVEN_GPG_KEY }} - - run: ls staging - - run: ls io - - run: ls staging/io - - run: ls staging/io/9tiger - - run: ls staging/io/9tiger/db2rest - - run: ls staging/io/9tiger/db2rest/${{ github.event.release.tag_name }} - - name: Login to DockerHub uses: docker/login-action@v3 with: @@ -88,4 +82,4 @@ jobs: tags: kdhrubo/db2rest:v${{ github.event.release.tag_name }}, kdhrubo/db2rest:latest build-args: | DB2REST_VERSION=${{ github.event.release.tag_name }} - JAR_FILE=${{ env.JAR_FILE_PATH }}/${{ env.JAR_FILE }} + JAR_FILE=${{ env.JAR_PATH }}