Skip to content

Update qt5 (2/3)

Update qt5 (2/3) #79

Workflow file for this run

name: package build
on:
push:
branches:
- qt5
tags:
- qt5-v*
pull_request:
branches:
- qt5
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: build linux
uses: ./.github/actions/build_linux
- name: build linux outputs
shell: bash
run: |
echo UPLOAD_FILE=cutter-deps-q5-linux-x86_64.tar.gz >> $GITHUB_ENV
echo UPLOAD_ASSET_TYPE=application/gzip >> $GITHUB_ENV
sha256sum cutter-deps-q5-linux-x86_64.tar.gz
- uses: actions/upload-artifact@v4
with:
name: ${{ env.UPLOAD_FILE }}
path: ${{ env.UPLOAD_FILE }}
- name: Get release
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
id: get_release
uses: karliss/get-release@bee343636450eb2e9b85d9f1592d8d73c408dc74
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload release assets
if: steps.get_release.outputs.upload_url != null
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ${{ env.UPLOAD_FILE }}
asset_name: ${{ env.UPLOAD_FILE }}
asset_content_type: ${{ env.UPLOAD_ASSET_TYPE }}