File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed
Expand file tree Collapse file tree 2 files changed +46
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1+ name : create release
2+ on :
3+ push :
4+ tags :
5+ - ' v*.*.*'
6+ branches :
7+ - main
8+
9+ jobs :
10+ create-release :
11+ runs-on : ' ubuntu-24.04'
12+
13+ permissions :
14+ contents : write
15+ packages : write
16+
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v4
20+ with :
21+ fetch-depth : 0 # Fetch all history for tags
22+
23+ - name : Build package
24+ uses : ./.github/actions/devcontainer
25+ with :
26+ token : ${{ secrets.GITHUB_TOKEN }}
27+ command : |
28+ cmake -E make_directory build
29+ cmake -B ./build -S .
30+ cmake --build ./build --target package
31+
32+ - name : Set release version
33+ id : version
34+ run : |
35+ echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
36+
37+ - name : Create release
38+ uses : softprops/action-gh-release@v1
39+ with :
40+ tag_name : ${{ steps.version.outputs.version }}
41+ name : ${{ steps.version.outputs.version }}
42+ draft : false
43+ prerelease : false
44+ token : ${{ secrets.GITHUB_TOKEN }}
45+ files : |
46+ ./build/${{ github.event.repository.name }}*.zip
You can’t perform that action at this time.
0 commit comments