Skip to content

Commit 1bdfa80

Browse files
ci: Add artifact upload to release
Signed-off-by: Patrick José Pereira <[email protected]>
1 parent fd809a7 commit 1bdfa80

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/release.yml

+22-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- os: macos-latest
1616
DEPLOY_PATH: qhot.dmg
1717
- os: ubuntu-latest
18-
DEPLOY_PATH: qhot-*.AppImage
18+
DEPLOY_PATH: qhot.AppImage
1919
- os: windows-latest
2020
DEPLOY_PATH: qhot-Windows.zip
2121

@@ -69,6 +69,7 @@ jobs:
6969
sudo apt install --yes libfuse2 libxkbcommon-x11-0
7070
export QML_SOURCES_PATHS=$PWD/qml
7171
linuxdeploy-x86_64.AppImage --desktop-file=deploy/qhot.desktop --executable=build/src/qhot --appdir=build/src --plugin=qt --output=appimage --verbosity=3 --icon-file=deploy/icon.png
72+
cpp qhot-*.AppImage qhot.AppImage
7273
7374
- name: Build Windows
7475
if: runner.os == 'Windows'
@@ -97,3 +98,23 @@ jobs:
9798
with:
9899
name: qhot-${{ runner.os }}
99100
path: ${{ matrix.DEPLOY_PATH }}
101+
102+
- name: Upload continuous to release
103+
uses: svenstaro/upload-release-action@v2
104+
if: ${{ github.event_name != 'pull_request' }}
105+
with:
106+
repo_token: ${{ secrets.GITHUB_TOKEN }}
107+
file: ${{ matrix.DEPLOY_PATH }}
108+
tag: continuous
109+
overwrite: true
110+
prerelease: true
111+
112+
- name: Upload release
113+
uses: svenstaro/upload-release-action@v2
114+
if: startsWith(github.ref, 'refs/tags/')
115+
with:
116+
repo_token: ${{ secrets.GITHUB_TOKEN }}
117+
file: ${{ matrix.DEPLOY_PATH }}
118+
tag: ${{ github.ref }}
119+
overwrite: true
120+
prerelease: true

0 commit comments

Comments
 (0)