-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.12 KB
/
release.yaml
File metadata and controls
46 lines (41 loc) · 1.12 KB
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
name: on release
on:
release:
types:
- "created"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
include:
- os: ubuntu-latest
output-name: uptodate.linux
- os: macOS-latest
output-name: uptodate.mac
- os: windows-latest
output-name: uptodate.windows.exe
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- run: dart test
- run: mkdir build
- name: build
run: dart compile exe bin/uptodate.dart -v -o build/${{ matrix.output-name }}
- name: upload to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/${{ matrix.output-name }}
asset_name: ${{ matrix.output-name }}
tag: ${{ github.ref }}
overwrite: true
tags:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: fischerscode/tagger@v0.2
with:
prefix: v