Skip to content

Commit

Permalink
Added Github Actions (1)
Browse files Browse the repository at this point in the history
  • Loading branch information
arBmind committed Jan 16, 2021
1 parent 43afea9 commit 1b5899b
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build and Release

on: push

jobs:
windows-qbs:
name: Build with Qbs
runs-on: windows-2019

steps:
- name: Install Qbs
run: choco install qbs

- name: Setup Qbs
run: |
qbs setup-toolchains --detect
qbs config defaultProfile MSVC2019-x64
qbs config --list profiles
- name: Git Checkout
uses: actions/checkout@v2

- run: >-
qbs build
--file DesktopDuplicator.qbs
--build-directory ${env:RUNNER_TEMP}\build
qbs.installRoot:${{ github.workspace }}/install-root
config:Release qbs.defaultBuildVariant:release
- name: Pack
working-directory: ${{ github.workspace }}/install-root
run: 7z a ../DesktopDuplicator-${{ github.run_id }}.7z * -r

- name: Upload
uses: actions/upload-artifact@v1
with:
path: ./DesktopDuplicator-${{ github.run_id }}.7z
name: DesktopDuplicator-${{ github.run_id }}.7z

- name: Upload binaries to release
if: contains(github.ref, 'tags/v')
uses: svenstaro/upload-release-action@v2
with:
tag: ${{ github.ref }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
release_name: Release ${{ github.ref }}
overwrite: true
file: ${{ github.workspace }}/DesktopDuplicator-${{ github.run_id }}.7z

0 comments on commit 1b5899b

Please sign in to comment.