-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.11 KB
/
ci-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Package
on: workflow_dispatch
jobs:
package:
runs-on: macos-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Run python script
run: python3 build.py
- name: Parse Qt version
id: parse_qt_version
run: |
directory="${{ github.workspace }}"
for folder in "$directory"/qt-install-*; do
if [[ -d "$folder" ]]; then
version=${folder#"$directory"/qt-install-}
echo "Version: $version"
echo "::set-output name=version::$version" # Store the version in an output variable
fi
done
- name: Compress install directory
run: |
version="${{ steps.parse_qt_version.outputs.version }}"
tar -C ${{ github.workspace }} -czf qt-$version-macos-universal.tar.gz qt-install-$version
- name: Upload release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.parse_qt_version.outputs.version }}
commit: ${{ github.sha }}
artifacts: qt-*.tar.gz