-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.2 KB
/
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
name: release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
build:
needs: setup
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
include:
- os: macos-latest
binary: morrobroom
archive: macos-latest.zip
- os: ubuntu-latest
binary: morrobroom
archive: ubuntu-latest.zip
- os: windows-latest
binary: morrobroom.exe
archive: windows-latest.zip
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- name: build
run: cargo +nightly build --release
- name: compress
run: tar -acf ${{ matrix.archive }} -C ./target/release/ ${{ matrix.binary }}
- name: upload
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ${{ matrix.archive }}