diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index af2cb1c..26bf3e7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -139,12 +139,14 @@ jobs: CHANGELOG="${CHANGELOG//'%'/'%25'}" CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" - ARTIFACT="${NAME}-${VERSION}.zip" + + REPO_NAME=${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/} + ARTIFACT="${REPO_NAME}-${VERSION}.zip" - echo "::set-output name=version::$VERSION" - echo "::set-output name=name::$NAME" - echo "::set-output name=changelog::$CHANGELOG" - echo "::set-output name=artifact::$ARTIFACT" + echo "version=$VERSION" >> $GITHUB_OUTPUT + echo "name=$NAME" >> $GITHUB_OUTPUT + echo "changelog=$CHANGELOG" >> $GITHUB_OUTPUT + echo "artifact=$ARTIFACT" >> $GITHUB_OUTPUT # Build artifact using buildPlugin Gradle task - name: Build Plugin @@ -155,7 +157,7 @@ jobs: uses: actions/upload-artifact@v3 with: name: plugin-artifact - path: ./build/distributions/${{ needs.build.outputs.artifact }} + path: ./build/distributions/${{ steps.properties.outputs.artifact }} if-no-files-found: error # Prepare a draft release for GitHub Releases page for the manual verification