File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,18 @@ jobs:
2323 autoreconf -fi
2424 ./configure
2525 make dist
26+ - name : get version
27+ run : |
28+ VER=$(cat VERSION)
29+ echo "VERSION=$VER" >> $GITHUB_ENV
2630 - name : create release
2731 id : create_release
2832 uses : actions/create-release@latest
2933 env :
3034 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3135 with :
3236 tag_name : ${{ github.ref }}
33- release_name : Release ${{ github.ref }}
37+ release_name : Release ${{ env.VERSION }}
3438 draft : true
3539 prerelease : true
3640 - name : upload release
3943 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4044 with :
4145 upload_url : ${{ steps.create_release.outputs.upload_url }}
42- asset_path : ./circa-0.1 .tar.gz
43- asset_name : circa-0.1 .tar.gz
46+ asset_path : ./circa-${{ env.VERSION }} .tar.gz
47+ asset_name : circa-${{ env.VERSION }} .tar.gz
4448 asset_content_type : application/gzip
Original file line number Diff line number Diff line change @@ -16,3 +16,4 @@ aclocal.m4
1616/missing
1717/stamp-h1
1818/ca
19+ /VERSION
Original file line number Diff line number Diff line change 33
44v=` git describe --abbrev=4 --match=" v*" HEAD 2> /dev/null || echo " UNKNOWN" `
55v=` echo " $v " | tr -d " vg" | tr " \-" " ." `
6+ echo $v > VERSION
67printf %s " $v "
You can’t perform that action at this time.
0 commit comments