diff options
author | Eike Ziller <eike.ziller@qt.io> | 2023-01-20 10:16:04 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2023-02-07 08:00:17 +0000 |
commit | 78cad1813563d1276ef64d224b6b1bb16504c3e1 (patch) | |
tree | 548f76146345c62a5825d34239f862514b1cb17a /.github | |
parent | c6853ff32a123a3fe4956d7667cf53b0138c19c1 (diff) | |
download | qt-creator-78cad1813563d1276ef64d224b6b1bb16504c3e1.tar.gz |
GitHub: Create and upload Debian packages
Change-Id: I989ef46e9e99de4291f582d096ad6dc44d7b47ec
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build_cmake.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index b93e14251d..a77bd7a5ff 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -580,6 +580,7 @@ jobs: --add-config=-DIDE_REVISION_URL=https://github.com/$ENV{GITHUB_REPOSITORY}/commits/$ENV{GITHUB_SHA} --zip-infix=-${{ matrix.config.artifact }}-${{ github.run_id }} --no-qbs + --with-cpack RESULT_VARIABLE result COMMAND_ECHO STDOUT OUTPUT_VARIABLE output @@ -667,6 +668,13 @@ jobs: path: build/qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z + - name: Upload Debian package + if: runner.os == 'Linux' + uses: actions/upload-artifact@v3 + with: + path: build/build/qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}.deb + name: qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}.deb + - name: Upload disk image if: runner.os == 'macOS' && contains(github.ref, 'tags/v') uses: actions/upload-artifact@v3 @@ -763,6 +771,13 @@ jobs: name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z path: ./ + - name: Download Debian package artifact + if: matrix.config.artifact == 'Linux' + uses: actions/download-artifact@v3 + with: + name: qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}.deb + path: ./ + - name: Download disk image artifact if: matrix.config.artifact == 'macOS' uses: actions/download-artifact@v3 @@ -822,6 +837,17 @@ jobs: asset_name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z asset_content_type: application/x-gtar + - name: Upload Debian package to Release + if: matrix.config.artifact == 'Linux' + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.set_upload_url.outputs.upload_url }} + asset_path: ./qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}.deb + asset_name: qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}.deb + asset_content_type: application/x-gtar + - name: Upload disk image to Release if: matrix.config.artifact == 'macOS' uses: actions/upload-release-asset@v1 |