Skip to content

Commit

Permalink
Update release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Keelhauled committed Jan 25, 2025
1 parent 9169d65 commit a5460b5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,24 @@ jobs:
echo "file=${{ github.event.repository.name }}_$DATE.zip" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v4
- run: dotnet build --configuration Release

- name: Create release notes
continue-on-error: true
run: |
pwd
LAST_TAG=$(git describe --tags --abbrev=0)
git log $LAST_TAG..HEAD --pretty=format:"* %s" >> body.md
echo "## Changelog" >> body.md
LATEST_TAG=$(git describe --tags --abbrev=0)
git log $LATEST_TAG..HEAD --pretty=format:"* %s" >> body.md
echo "" >> body.md
echo "**Full Changelog**: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/compare/$LAST_TAG...${{ steps.info.outputs.date }}" >> body.md
echo "**Full Changelog**: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/compare/$LATEST_TAG...${{ steps.info.outputs.date }}" >> body.md
- name: Create zip
run: |
cd bin/Release
zip -r ${{ steps.info.outputs.file }} *
- run: pwd
- uses: softprops/action-gh-release@v2
with:
draft: true
Expand Down

0 comments on commit a5460b5

Please sign in to comment.