diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 90b474e..085c683 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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