diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7fdd594..9f8c43d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,3 +30,12 @@ jobs: run: script/ci/release.sh env: GITHUB_TOKEN: ${{ github.token }} + - name: Create Release + id: create_release + uses: softprops/action-gh-release@v2 + with: + tag_name: v${{ steps.publish.outputs.version }} + name: Release v${{ steps.publish.outputs.version }} + body: ${{steps.publish.outputs.notes}} + draft: false + prerelease: false \ No newline at end of file diff --git a/script/ci/release.sh b/script/ci/release.sh index bfccfec..491ae2b 100755 --- a/script/ci/release.sh +++ b/script/ci/release.sh @@ -57,7 +57,11 @@ else npm run release # Emit tag to next step VERSION="$("$SCRIPT_DIR/lib/get-version.sh")" - TAG="v${VERSION}" + echo "version=$VERSION" >>"$GITHUB_OUTPUT" + RELEASE_NOTES="${RELEASE_NOTES//'%'/'%25'}" + RELEASE_NOTES="${RELEASE_NOTES//$'\n'/'%0A'}" + RELEASE_NOTES="${RELEASE_NOTES//$'\r'/'%0D'}" + echo "notes=$RELEASE_NOTES" >>"$GITHUB_OUTPUT" fi "$SCRIPT_DIR"/lib/publish.sh