-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.04 KB
/
make-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
40
41
42
43
name: Make Release
on:
push:
tags:
- 'v**'
jobs:
make_release:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Prepare Environment
run: |
sudo apt install libopenxr-dev
rustup update stable
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_KEY }}
with:
tag_name: ${{ github.ref_name }}
release_name: Motoc ${{ github.ref_name }}
draft: true
prerelease: false
- name: Cargo Build
run: |
cargo build --release
chmod +x target/release/motoc
- name: Upload
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_KEY }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/release/motoc
asset_name: motoc
asset_content_type: application/octet-stream