-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (32 loc) · 987 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
31
32
33
34
35
36
37
38
39
name: Release
on:
release:
types: [created]
jobs:
build:
defaults:
run:
shell: bash
strategy:
matrix:
platform:
- { runner: windows-latest, name: windows }
- { runner: macos-latest, name: mac }
- { runner: ubuntu-20.04, name: linux }
runs-on: ${{ matrix.platform.runner }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- name: Build
id: build
run: |
cargo build --release
ext=${{ matrix.platform.name == 'windows' && '.exe' || '' }}
mkdir artifacts
mv \
./target/release/lunar_launcher_inject$ext \
./artifacts/lunar-launcher-inject-${{ matrix.platform.name }}-${{ github.event.release.name }}$ext
- name: Upload Executable
run: gh release upload $GITHUB_REF_NAME ./artifacts/*
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}