-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (29 loc) · 889 Bytes
/
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
name: Release
on:
release:
types: [created]
jobs:
build-and-upload:
name: Add Binaries to Release
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
RUSTC_TARGET: x86_64-unknown-linux-gnu
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: ${{ env.RUSTC_TARGET }}
- name: Build petit-filou
run: cargo build --verbose --release --target ${{ env.RUSTC_TARGET }}
- name: Upload Binary to Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.event.release.tag_name }} target/${{ env.RUSTC_TARGET }}/release/petit-filou#${{ env.RUSTC_TARGET }}