@@ -23,12 +23,12 @@ jobs:
2323
2424 steps :
2525 - name : Checkout
26- uses : actions/checkout@v5
26+ uses : actions/checkout@v6
2727 with :
2828 submodules : true
2929
3030 - name : Setup .NET
31- uses : actions/setup-dotnet@v4
31+ uses : actions/setup-dotnet@v5
3232 with :
3333 dotnet-version : ${{ env.DOTNET_VERSION }}
3434
7676 run : dotnet pack ${{ env.SOLUTION }} --configuration Release -p:IncludeSymbols=false -p:SymbolPackageFormat=snupkg --output ${{ env.ARTIFACTS_DIR }}
7777
7878 - name : Upload artifacts
79- uses : actions/upload-artifact@v4
79+ uses : actions/upload-artifact@v7
8080 with :
8181 name : nuget-packages
8282 path : ${{ env.ARTIFACTS_DIR }}/*.nupkg
@@ -96,13 +96,13 @@ jobs:
9696
9797 steps :
9898 - name : Download artifacts
99- uses : actions/download-artifact@v5
99+ uses : actions/download-artifact@v8
100100 with :
101101 name : nuget-packages
102102 path : ${{ env.ARTIFACTS_DIR }}
103103
104104 - name : Setup .NET
105- uses : actions/setup-dotnet@v4
105+ uses : actions/setup-dotnet@v5
106106 with :
107107 dotnet-version : ${{ env.DOTNET_VERSION }}
108108
@@ -148,13 +148,13 @@ jobs:
148148
149149 steps :
150150 - name : Checkout
151- uses : actions/checkout@v5
151+ uses : actions/checkout@v6
152152 with :
153153 fetch-depth : 0
154154 token : ${{ secrets.GITHUB_TOKEN }}
155155
156156 - name : Download artifacts
157- uses : actions/download-artifact@v5
157+ uses : actions/download-artifact@v8
158158 with :
159159 name : nuget-packages
160160 path : ${{ env.ARTIFACTS_DIR }}
@@ -182,7 +182,7 @@ jobs:
182182 set -euo pipefail
183183 VERSION="${{ needs.publish-nuget.outputs.version }}"
184184 TAG="v${VERSION}"
185- PREVIOUS_TAG="$(git tag --sort=-version:refname | grep -v "^ ${TAG}$ " | head -n1 || true)"
185+ PREVIOUS_TAG="$(git tag --sort=-version:refname | grep -v -x -- " ${TAG}" | head -n1 || true)"
186186
187187 {
188188 echo "# Release ${VERSION}"
@@ -207,19 +207,22 @@ jobs:
207207 for package in ${{ env.ARTIFACTS_DIR }}/*.nupkg; do
208208 file="$(basename "${package}")"
209209 base="${file%.nupkg}"
210- package_id="${base%.${VERSION}}"
210+ version_suffix=".${VERSION}"
211+ package_id="${base%"${version_suffix}"}"
211212 echo "- [${package_id} ${VERSION}](https://www.nuget.org/packages/${package_id}/${VERSION})"
212213 done
213214 } > release_notes.md
214215
215216 - name : Create GitHub Release
216- uses : softprops/action-gh-release@v2
217- with :
218- tag_name : v${{ needs.publish-nuget.outputs.version }}
219- name : v${{ needs.publish-nuget.outputs.version }}
220- body_path : release_notes.md
221- files : ${{ env.ARTIFACTS_DIR }}/*.nupkg
222- draft : false
223- prerelease : false
217+ shell : bash
218+ run : |
219+ set -euo pipefail
220+ VERSION="${{ needs.publish-nuget.outputs.version }}"
221+ TAG="v${VERSION}"
222+
223+ gh release create "${TAG}" \
224+ --title "${TAG}" \
225+ --notes-file release_notes.md \
226+ ${{ env.ARTIFACTS_DIR }}/*.nupkg
224227 env :
225- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
228+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments