File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ name: CMake
22
33on :
44 push :
5+ tags :
6+ - ' *'
57 branches : [ master ]
68 pull_request :
79 branches : [ master ]
5759 VERSION=$(git -C '${{github.workspace}}' describe --first-parent)
5860 PLATFORM=$(echo ${{matrix.config.name}} | tr '[:upper:]' '[:lower:'] | sed 's/ /_/g')
5961 echo "FILENAME=armips_${VERSION}_${PLATFORM}" >> $GITHUB_ENV
62+ echo "RELEASENAME=armips_${VERSION}" >> $GITHUB_ENV
6063
6164 - name : Upload
6265 uses : actions/upload-artifact@v4
6366 with :
6467 name : ${{env.FILENAME}}
6568 path : ${{github.workspace}}/install
69+
70+ - name : Archive Release
71+ uses : thedoctor0/zip-release@0.7.6
72+ if : startsWith(github.ref, 'refs/tags/')
73+ with :
74+ type : ' zip'
75+ filename : ${{env.FILENAME}}.zip
76+ directory : ' ${{github.workspace}}/install'
77+
78+ - name : Release
79+ uses : softprops/action-gh-release@v2
80+ if : startsWith(github.ref, 'refs/tags/')
81+ with :
82+ name : ${{env.RELEASENAME}}
83+ prerelease : true
84+ files : ${{github.workspace}}/install/${{env.FILENAME}}.zip
85+
You can’t perform that action at this time.
0 commit comments