File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed
Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 11on :
22 push :
3- branches :
4- - release/*
3+ tags :
4+ - ' [0-9]+.[0-9]+.[0-9]+'
5+
6+ permissions :
7+ contents : write
58
69jobs :
710 build :
11+ name : Build NuGet package
812 runs-on : ubuntu-latest
9- timeout-minutes : 15
13+ timeout-minutes : 5
1014 steps :
1115 - name : Checkout
12162024 git log --pretty=format:'%d %s' ${GITHUB_REF} | perl -pe 's| \(.*tag: (\d+.\d+.\d+(-preview\d{3})?)(, .*?)*\)|\n## \1\n|g' > RELEASE_NOTES.md
2125 - name : Build
2226 run : ./build.sh --target Publish --publish --nuget --token ${{ secrets.PUBLIC_NUGET_APIKEY }}
27+ release :
28+ name : Create GitHub Release
29+ runs-on : ubuntu-latest
30+ timeout-minutes : 5
31+ steps :
32+ - name : Create release
33+ env :
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35+ tag : ${{ github.ref_name }}
36+ run : |
37+ gh release create "$tag" \
38+ --repo="$GITHUB_REPOSITORY" \
39+ --title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
40+ --generate-notes
You can’t perform that action at this time.
0 commit comments