11# Github action script for building linux executables of this project
2- # Copyright (C) 2022 Plnguins
2+ # Copyright (C) 2022 Plnguins
33
44# This program is free software: you can redistribute it and/or modify
55# it under the terms of the GNU Affero General Public License as published
@@ -17,6 +17,8 @@ name: Linux build
1717
1818on :
1919 push :
20+ tags :
21+ - " *"
2022 paths-ignore :
2123 - " **.md"
2224 - " LICENSE"
@@ -102,9 +104,29 @@ jobs:
102104 ${{ github.workspace }}/linuxdeploy.AppImage --appdir ${{ github.workspace }}/build/bin/app -e ${{ github.workspace }}/build/bin/CRM --plugin qt
103105 cp -R ${{ github.workspace }}/build/bin/app/usr ${{ github.workspace }}/packages/com.pinguins.crm/data
104106 - name : Create installer
105- run : ${{ env.IQTA_TOOLS }}/QtInstallerFramework/4.4/bin/binarycreator -c ${{ github.workspace }}/config/config.xml -p ${{ github.workspace }}/packages ${{ github.workspace }}/Setup -v
107+ run : ${{ env.IQTA_TOOLS }}/QtInstallerFramework/4.4/bin/binarycreator -c ${{ github.workspace }}/config/config.xml -p ${{ github.workspace }}/packages ${{ github.workspace }}/Linux- Setup -v
106108 - uses : actions/upload-artifact@v3
107109 name : Upload builded app
108110 with :
109- name : Setup
110- path : ${{ github.workspace }}/Setup
111+ name : Linux
112+ path : ${{ github.workspace }}/Linux-Setup
113+ release :
114+ needs : linux
115+ name : Create\Update release
116+ runs-on : ubuntu-latest
117+ steps :
118+ - name : Download artifact
119+ uses : actions/download-artifact@v3
120+ with :
121+ name : Linux
122+ path : ${{ github.workspace }}/Linux
123+ - name : Create Release
124+ id : create_release
125+ uses : ncipollo/release-action@v1.10.0
126+ with :
127+ allowUpdates : true
128+ artifactErrorsFailBuild : true
129+ artifacts : " ${{ github.workspace }}/Linux/Linux-Setup"
130+ name : ${{ github.event.head_commit.message }}
131+ draft : false
132+ prerelease : ${{ github.ref != 'refs/heads/master' }}
0 commit comments