-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (40 loc) · 1.11 KB
/
create-release.yaml
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
name: Create Release
on:
workflow_dispatch:
push:
tags:
- "*"
jobs:
build:
strategy:
matrix:
type:
- { name: linux, os: ubuntu-latest }
- { name: macos_intel, os: macos-latest }
- { name: macos_apple_silicon, os: flyci-macos-large-latest-m1 }
- { name: windows, os: windows-latest }
runs-on: ${{ matrix.type.os }}
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: dart pub get
- name: Compile
run: dart compile exe bin/hds_desktop.dart -o hds_desktop
- name: Archive artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.type.name }}
path: hds_desktop
deploy:
runs-on: ubuntu-latest
needs: build
if: success()
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Create release draft
uses: ncipollo/release-action@v1
with:
artifacts: "linux/*,macos_intel/,macos_apple_silicon/*,windows/*"
draft: true