Skip to content

Commit

Permalink
Merge branch 'rel/gh_create_release'
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Jun 12, 2024
2 parents c03fc2f + 8020041 commit ef069fe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion script/ci/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef069fe

Please sign in to comment.