-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 833 Bytes
/
_release.yml
File metadata and controls
34 lines (26 loc) · 833 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
name: Release Tokens
on:
workflow_call:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4.2.2
- name: Install musl
run: |
sudo apt-get update
sudo apt-get install -y musl-tools
- name: Install rust
uses: actions-rust-lang/setup-rust-toolchain@v1.15.0
with:
target: x86_64-unknown-linux-musl
- name: Build binary
run: cargo build --release --target x86_64-unknown-linux-musl
- name: Zip binary
run: zip tokens ./target/x86_64-unknown-linux-musl/release/tokens -j
- name: Release Tokens
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/'))
uses: softprops/action-gh-release@v1
with:
files: tokens.zip