|
52 | 52 | skipNuget: ${{ inputs.skipNuget }} |
53 | 53 | skipNpm: ${{ inputs.skipNpm }} |
54 | 54 |
|
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 | | - |
79 | 55 | build-template: |
80 | 56 | uses: ./.github/workflows/part-template-build.yml |
81 | 57 | secrets: inherit |
@@ -107,3 +83,27 @@ jobs: |
107 | 83 | - name: dotnet nuget push |
108 | 84 | if: ${{ !inputs.skipTemplate }} |
109 | 85 | 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