-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.05 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
name: Publish
on:
push:
branches:
- master
jobs:
publish:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: poker_prob
asset_name: poker-prob-linux-amd64
- os: windows-latest
artifact_name: poker_prob.exe
asset_name: poker-prob-windows-amd64
- os: macos-latest
artifact_name: poker_prob
asset_name: poker-prob-macos-amd64
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --release
- name: Set outputs
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.RELEASE_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ steps.vars.outputs.sha_short }}