Skip to content

Commit f84df1d

Browse files
committed
ci: move create-release to be the last release step
1 parent dbfce1d commit f84df1d

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

.github/workflows/release.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -52,30 +52,6 @@ jobs:
5252
skipNuget: ${{ inputs.skipNuget }}
5353
skipNpm: ${{ inputs.skipNpm }}
5454

55-
create-release:
56-
runs-on: ubuntu-latest
57-
needs: [meta, publish]
58-
permissions:
59-
contents: write
60-
steps:
61-
- uses: actions/checkout@v5
62-
63-
- name: Extract changelog for current version
64-
if: ${{ !inputs.prereleaseSlug }}
65-
id: changelog
66-
run: |
67-
# Extract content between the first # heading and the next # heading
68-
awk '/^# /{if(found) exit; found=1; next} found' CHANGELOG.md > release_notes.md
69-
cat release_notes.md
70-
71-
- name: Create GitHub Release
72-
if: ${{ !inputs.prereleaseSlug }}
73-
uses: softprops/action-gh-release@v2
74-
with:
75-
tag_name: ${{ needs.meta.outputs.COALESCE_VERSION }}
76-
name: ${{ needs.meta.outputs.COALESCE_VERSION }}
77-
body_path: release_notes.md
78-
7955
build-template:
8056
uses: ./.github/workflows/part-template-build.yml
8157
secrets: inherit
@@ -107,3 +83,27 @@ jobs:
10783
- name: dotnet nuget push
10884
if: ${{ !inputs.skipTemplate }}
10985
run: dotnet nuget push "**/*.nupkg" -s https://api.nuget.org/v3/index.json --api-key ${{ steps.login.outputs.NUGET_API_KEY }}
86+
87+
create-release:
88+
runs-on: ubuntu-latest
89+
needs: [meta, publish-template]
90+
permissions:
91+
contents: write
92+
steps:
93+
- uses: actions/checkout@v5
94+
95+
- name: Extract changelog for current version
96+
if: ${{ !inputs.prereleaseSlug }}
97+
id: changelog
98+
run: |
99+
# Extract content between the first # heading and the next # heading
100+
awk '/^# /{if(found) exit; found=1; next} found' CHANGELOG.md > release_notes.md
101+
cat release_notes.md
102+
103+
- name: Create GitHub Release
104+
if: ${{ !inputs.prereleaseSlug }}
105+
uses: softprops/action-gh-release@v2
106+
with:
107+
tag_name: ${{ needs.meta.outputs.COALESCE_VERSION }}
108+
name: ${{ needs.meta.outputs.COALESCE_VERSION }}
109+
body_path: release_notes.md

0 commit comments

Comments
 (0)