-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.29 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: Github Release
on:
release:
types:
- created
branches: [master]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --release
- name: archive linux
if: matrix.os == 'ubuntu-latest'
env:
PACKAGE: "fzn2lp-linux-x86_64.tar.gz"
run: tar -czf $PACKAGE -C target/release/ fzn2lp
- name: archive macOS
if: matrix.os == 'macOS-latest'
env:
PACKAGE: "fzn2lp-macos-x86_64.tar.gz"
run: tar -czf $PACKAGE -C target/release/ fzn2lp
- name: GH Release linux
if: matrix.os == 'ubuntu-latest'
uses: softprops/[email protected]
with:
# Newline-delimited list of path globs for asset files to upload
files: fzn2lp-linux-x86_64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: GH Release macOS
if: matrix.os == 'macOS-latest'
uses: softprops/[email protected]
with:
# Newline-delimited list of path globs for asset files to upload
files: fzn2lp-macos-x86_64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}