This repository has been archived by the owner on Jan 12, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (49 loc) · 1.5 KB
/
release.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
38
39
40
41
42
43
44
45
46
47
48
49
name: A new release
on:
push:
tags:
- "v*"
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
permissions:
contents: write
jobs:
release:
strategy:
fail-fast: true
matrix:
platform: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install NSIS (windows)
if: matrix.platform == 'windows-latest'
uses: mrquantumoff/[email protected]
with:
nsis-version: 3.09
- name: Install Qt5
if: matrix.platform == 'ubuntu-latest'
run: sudo apt update && sudo apt install qt6-base-dev
- name: Build the app
run: cargo build --release --verbose
- name: Build the installer (windows)
if: matrix.platform == 'windows-latest'
run: makensis.exe setup.nsi
- name: Publish GNU+Linux
if: matrix.platform == 'ubuntu-latest'
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
prerelease: contains('preview', ${{ github.ref_name}})
token: ${{ secrets.GITHUB_TOKEN }}
files: target/release/quadrant_lite
- name: Publish windows
if: matrix.platform == 'windows-latest'
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
prerelease: contains('preview', ${{ github.ref_name}})
token: ${{ secrets.GITHUB_TOKEN }}
files: QuadrantLiteSetup.exe