File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Release
2+
3+ on : push
4+
5+ jobs :
6+ windows-qbs :
7+ name : Build with Qbs
8+ runs-on : windows-2019
9+
10+ steps :
11+ - name : Install Qbs
12+ run : choco install qbs
13+
14+ - name : Setup Qbs
15+ run : |
16+ qbs setup-toolchains --detect
17+ qbs config defaultProfile MSVC2019-x64
18+ qbs config --list profiles
19+
20+ - name : Git Checkout
21+ uses : actions/checkout@v2
22+
23+ - run : >-
24+ qbs build
25+ --file DesktopDuplicator.qbs
26+ --build-directory ${env:RUNNER_TEMP}\build
27+ qbs.installRoot:${{ github.workspace }}/install-root
28+ config:Release qbs.defaultBuildVariant:release
29+
30+ - name : Pack
31+ working-directory : ${{ github.workspace }}/install-root
32+ run : 7z a ../DesktopDuplicator-${{ github.run_id }}.7z * -r
33+
34+ - name : Upload
35+ uses : actions/upload-artifact@v1
36+ with :
37+ path : ./DesktopDuplicator-${{ github.run_id }}.7z
38+ name : DesktopDuplicator-${{ github.run_id }}.7z
39+
40+ - name : Upload binaries to release
41+ if : contains(github.ref, 'tags/v')
42+ uses : svenstaro/upload-release-action@v2
43+ with :
44+ tag : ${{ github.ref }}
45+ repo_token : ${{ secrets.GITHUB_TOKEN }}
46+ release_name : Release ${{ github.ref }}
47+ overwrite : true
48+ file : ${{ github.workspace }}/DesktopDuplicator-${{ github.run_id }}.7z
You can’t perform that action at this time.
0 commit comments