forked from qt-creator/qt-creator
GitHub: Create and upload Debian packages
Change-Id: I989ef46e9e99de4291f582d096ad6dc44d7b47ec Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
26
.github/workflows/build_cmake.yml
vendored
26
.github/workflows/build_cmake.yml
vendored
@@ -580,6 +580,7 @@ jobs:
|
|||||||
--add-config=-DIDE_REVISION_URL=https://github.com/$ENV{GITHUB_REPOSITORY}/commits/$ENV{GITHUB_SHA}
|
--add-config=-DIDE_REVISION_URL=https://github.com/$ENV{GITHUB_REPOSITORY}/commits/$ENV{GITHUB_SHA}
|
||||||
--zip-infix=-${{ matrix.config.artifact }}-${{ github.run_id }}
|
--zip-infix=-${{ matrix.config.artifact }}-${{ github.run_id }}
|
||||||
--no-qbs
|
--no-qbs
|
||||||
|
--with-cpack
|
||||||
RESULT_VARIABLE result
|
RESULT_VARIABLE result
|
||||||
COMMAND_ECHO STDOUT
|
COMMAND_ECHO STDOUT
|
||||||
OUTPUT_VARIABLE output
|
OUTPUT_VARIABLE output
|
||||||
@@ -667,6 +668,13 @@ jobs:
|
|||||||
path: build/qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
path: build/qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
||||||
name: 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
|
- name: Upload disk image
|
||||||
if: runner.os == 'macOS' && contains(github.ref, 'tags/v')
|
if: runner.os == 'macOS' && contains(github.ref, 'tags/v')
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
@@ -763,6 +771,13 @@ jobs:
|
|||||||
name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
||||||
path: ./
|
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
|
- name: Download disk image artifact
|
||||||
if: matrix.config.artifact == 'macOS'
|
if: matrix.config.artifact == 'macOS'
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
@@ -822,6 +837,17 @@ jobs:
|
|||||||
asset_name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
asset_name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
||||||
asset_content_type: application/x-gtar
|
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
|
- name: Upload disk image to Release
|
||||||
if: matrix.config.artifact == 'macOS'
|
if: matrix.config.artifact == 'macOS'
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
|
Reference in New Issue
Block a user