Skip to content

Commit f827f57

Browse files
committed
Create release on tag push
1 parent 30a81e8 commit f827f57

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/release.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Create macOS release on tag push
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build:
10+
runs-on: macos-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Install Qt
14+
uses: jurplel/install-qt-action@v3
15+
with:
16+
modules: qtwebengine
17+
- name: qmake
18+
run: qmake qserial.pro
19+
- name: make
20+
run: make
21+
- name: Change libusb path
22+
run: install_name_tool -change /usr/local/opt/libusb/lib/libusb-1.0.0.dylib @executable_path/../Frameworks/libusb-1.0.0.dylib QSerial.app/Contents/MacOS/QSerial
23+
- name: Copy libusb to frameworks
24+
run: mkdir -p QSerial.app/Contents/Frameworks && cp /usr/local/lib/libusb-1.0.0.dylib QSerial.app/Contents/Frameworks/libusb-1.0.0.dylib
25+
- name: Qt mac deploy to .dmg
26+
run: macdeployqt QSerial.app -verbose=1 -dmg
27+
- name: Release
28+
uses: softprops/action-gh-release@v1
29+
if: startsWith(github.ref, 'refs/tags/')
30+
with:
31+
files: QSerial.dmg

0 commit comments

Comments
 (0)