Skip to content

Commit d935d7e

Browse files
committed
Release v24.0.1: Attach the Ocelot release to the top commit in develop branch (aka target_commitish), which must contain updated docs
1 parent d0be864 commit d935d7e

File tree

3 files changed

+385
-4
lines changed

3 files changed

+385
-4
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ jobs:
6767
xmlstarlet ed -L -u "//Project/PropertyGroup/PackageReleaseNotes" -v "$new_value" ./src/Ocelot.Administration.IdentityServer4.csproj
6868
xml_value=$(xmllint --xpath "string(//Project/PropertyGroup/PackageReleaseNotes)" ./src/Ocelot.Administration.IdentityServer4.csproj)
6969
echo Replaced PackageReleaseNotes: $xml_value
70+
- name: README.md
71+
run: |
72+
# Replaces relative GitHub paths with NuGet-friendly absolute URLs
73+
sed -i 's|/ocelot_icon.png|https://raw.githubusercontent.com/ThreeMammals/Ocelot.Administration.IdentityServer4/refs/heads/main/ocelot_icon.png|g; s|/idser4_logo.png|https://raw.githubusercontent.com/ThreeMammals/Ocelot.Administration.IdentityServer4/refs/heads/main/idser4_logo.png|g' README.md
74+
echo New content of README.md
75+
echo ------------------------
76+
cat README.md
7077
7178
- name: Restore dependencies
7279
run: dotnet restore ./Ocelot.Administration.IdentityServer4.sln
@@ -78,7 +85,7 @@ jobs:
7885
run: dotnet nuget push ./packages/*.nupkg --source "https://api.nuget.org/v3/index.json" --api-key ${{ secrets.NUGET_API_KEY_2025 }} --skip-duplicate
7986

8087
- name: GitHub Release
81-
uses: softprops/action-gh-release@v2
88+
uses: softprops/action-gh-release@v2 # https://github.com/softprops/action-gh-release
8289
env:
8390
PACKAGE_VERSION: ${{ steps.ver.outputs.PkgVersion }}
8491
OCELOT_VERSION: ${{ steps.xml.outputs.OcelotRefVer }}
@@ -98,15 +105,18 @@ jobs:
98105
prerelease: false
99106
make_latest: true
100107
- name: Release to Ocelot Repo
101-
uses: softprops/action-gh-release@v2
108+
uses: softprops/action-gh-release@v2 # https://github.com/softprops/action-gh-release
102109
if: github.ref_type == 'tag'
103110
env:
104111
PACKAGE_TAG: ${{ github.ref_name }}
105112
PACKAGE_VERSION: ${{ steps.ver.outputs.PkgVersion }}
106113
OCELOT_VERSION: ${{ steps.xml.outputs.OcelotRefVer }}
107114
with:
108115
repository: ThreeMammals/Ocelot
109-
token: ${{ secrets.OCELOT_EXTENSION_PACKAGE_RELEASE_TOKEN_0 }}
116+
token: ${{ secrets.OCELOT_EXTENSION_PACKAGE_RELEASE_TOKEN }}
117+
name: Ocelot.Administration.IdentityServer4 ${{ env.PACKAGE_TAG }}
118+
tag_name: oa${{ env.PACKAGE_VERSION }}
119+
target_commitish: develop # top commit must contain updated docs
110120
body: |
111121
## Ocelot.Administration.IdentityServer4 version [${{ env.PACKAGE_VERSION }}](https://www.nuget.org/packages/Ocelot.Administration.IdentityServer4/${{ env.PACKAGE_VERSION }})
112122
> Ocelot release: [${{ env.OCELOT_VERSION }}](https://github.com/ThreeMammals/Ocelot/releases/tag/${{ env.OCELOT_VERSION }})

0 commit comments

Comments
 (0)