-
Notifications
You must be signed in to change notification settings - Fork 13
33 lines (27 loc) · 834 Bytes
/
Copy pathrelease.yml
File metadata and controls
33 lines (27 loc) · 834 Bytes
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
on:
release:
types: [created]
jobs:
build:
name: build ${{ matrix.target }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt install -y libdbus-1-dev pkg-config libhidapi-dev
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true
- name: Build
run: cargo build --all --release && mv target/release/cloud-flight target/release/cloud-flight_amd64
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
target/release/cloud-flight_amd64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}