From 8b04a9913cf8dd7a424c64e82c590ee926408592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Sun, 12 Mar 2023 14:27:29 -0300 Subject: [PATCH] ci: Add artifact upload to release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- .github/workflows/release.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7fdd5a4..d7d0d33 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: - os: macos-latest DEPLOY_PATH: qhot.dmg - os: ubuntu-latest - DEPLOY_PATH: qhot-*.AppImage + DEPLOY_PATH: qhot.AppImage - os: windows-latest DEPLOY_PATH: qhot-Windows.zip @@ -69,6 +69,7 @@ jobs: sudo apt install --yes libfuse2 libxkbcommon-x11-0 export QML_SOURCES_PATHS=$PWD/qml 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 + cp qhot-*.AppImage qhot.AppImage - name: Build Windows if: runner.os == 'Windows' @@ -97,3 +98,23 @@ jobs: with: name: qhot-${{ runner.os }} path: ${{ matrix.DEPLOY_PATH }} + + - name: Upload continuous to release + uses: svenstaro/upload-release-action@v2 + if: ${{ github.event_name != 'pull_request' }} + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ${{ matrix.DEPLOY_PATH }} + tag: continuous + overwrite: true + prerelease: true + + - name: Upload release + uses: svenstaro/upload-release-action@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ${{ matrix.DEPLOY_PATH }} + tag: ${{ github.ref }} + overwrite: true + prerelease: true