@@ -35,19 +35,23 @@ jobs:
3535 with :
3636 dotnet-version : |
3737 7.0.x
38- 8 .0.x
38+ 9 .0.x
3939 cache : true
4040 cache-dependency-path : ' **/packages.lock.json'
41- - run : |
42- dotnet tool update -g dotnet-script
43- dotnet tool update -g docfx
44- dotnet restore --locked-mode
41+ - run : dotnet restore --locked-mode
42+ - run : dotnet tool update -g dotnet-script
43+ - run : dotnet tool update -g docfx
4544
4645 - id : build
4746 env :
4847 GH_TOKEN : ${{ github.token }}
48+ run : dotnet script ./tools/Builder/Build.csx
49+
50+ - name : Preview CHANGELOG
51+ if : steps.build.outputs.is_preview == 'True'
4952 run : |
50- dotnet script ./tools/Builder/Build.csx
53+ $latest = gh release view --json tagName --jq .tagName
54+ python3 tools/ChangelogGenerator/changelog_generator.py --tag "${{ steps.build.outputs.tag }}" --latest "$latest"
5155 ./docs/build.ps1
5256
5357 - uses : actions/upload-artifact@v4
@@ -101,12 +105,6 @@ jobs:
101105 7z x artifact.tar -o'${{ needs.build.outputs.version }}'
102106 7z a docs.zip '${{ needs.build.outputs.version }}'
103107
104- - name : Preview CHANGELOG
105- if : needs.build.outputs.is_preview == 'True'
106- run : |
107- latest="$(gh release view --json tagName --jq .tagName)"
108- python3 tools/ChangelogGenerator/changelog_generator.py --tag "${{ needs.build.outputs.tag }}" --latest "${latest}"
109-
110108 - if : needs.build.outputs.is_release == 'True'
111109 uses : softprops/action-gh-release@v2
112110 with :
0 commit comments