Skip to content

Commit 542a3e6

Browse files
committed
Добавлено создание релиза после сборки
1 parent 16b25f5 commit 542a3e6

File tree

2 files changed

+52
-8
lines changed

2 files changed

+52
-8
lines changed

.github/workflows/linux-build.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

1818
on:
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' }}

.github/workflows/windows-build.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Github action script for building windows 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: Windows build
1717

1818
on:
1919
push:
20+
tags:
21+
- "*"
2022
paths-ignore:
2123
- "docs/**"
2224
- "**.md"
@@ -87,9 +89,29 @@ jobs:
8789
- name: Build
8890
run: cmake --build ${{ github.workspace }}/build --parallel --config ${{ env.BUILD_TYPE }}
8991
- name: Create Setup
90-
run: ${{ env.IQTA_TOOLS }}\QtInstallerFramework\4.4\bin\binarycreator.exe -c config\config.xml -p packages Setup.exe -v
92+
run: ${{ env.IQTA_TOOLS }}\QtInstallerFramework\4.4\bin\binarycreator.exe -c config\config.xml -p packages Windows-Setup.exe -v
9193
- uses: actions/upload-artifact@v3
9294
name: Upload builded app
9395
with:
94-
name: CRM
95-
path: ${{ github.workspace }}/Setup.exe
96+
name: Windows
97+
path: ${{ github.workspace }}/Windows-Setup.exe
98+
release:
99+
needs: windows
100+
name: Create\Update release
101+
runs-on: ubuntu-latest
102+
steps:
103+
- name: Download artifact
104+
uses: actions/download-artifact@v3
105+
with:
106+
name: Windows
107+
path: ${{ github.workspace }}/Windows
108+
- name: Create Release
109+
id: create_release
110+
uses: ncipollo/release-action@v1.10.0
111+
with:
112+
allowUpdates: true
113+
artifactErrorsFailBuild: true
114+
artifacts: "${{ github.workspace }}/Windows/Windows-Setup.exe"
115+
name: ${{ github.event.head_commit.message }}
116+
draft: false
117+
prerelease: ${{ github.ref != 'refs/heads/master' }}

0 commit comments

Comments
 (0)