Skip to content

Commit

Permalink
Update prs-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wooly905 authored Dec 22, 2024
1 parent e6dcb18 commit c2a815e
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/prs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,6 @@ jobs:

- name: Generate release files
run: dotnet publish -r win-x64 -c Release --sc true -o ./publish ./src/PRS.csproj

- name: Read Release Notes and version
id: read_release_notes
run: |
BODY_CONTENT=$(type ./.github/workflows/ReleaseNote.md)
echo "body_content<<EOF" >> $GITHUB_ENV
echo "$BODY_CONTENT" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
xml_file="./src/PRS.csproj"
version=$(grep -oPm1 "(?<=<PackageVersion>)[^<]+" $xml_file)
echo "Current Package Version: $version"
echo "PackageVersion=$version" >> $GITHUB_ENV
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.PackageVersion }}
release_name: ${{ env.PackageVersion }}
body: ${{ env.body_content }}
draft: false
prerelease: false

- name: Setup .NET global tool
id: setup-global-tool
Expand Down

0 comments on commit c2a815e

Please sign in to comment.