-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (37 loc) · 1.06 KB
/
rust.yml
File metadata and controls
37 lines (37 loc) · 1.06 KB
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
name: Release
permissions:
contents: write
on:
push:
tags:
- v[0-9]+.* #新建tag触发,比如v0.1.1
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main #分支名字
- uses: taiki-e/create-gh-release-action@v1
with:
changelog: CHANGELOG.md #获取更新日志,需要在changelog添加对应版本的更新日志,否则会失败
token: ${{ secrets.ACTION_ACCESS }} # github token
upload-assets:
needs: create-release
strategy:
matrix:
include: #编译的平台tager
- target: x86_64-unknown-linux-gnu
- os: macos-10.15
- target: x86_64-pc-windows-msvc
os: windows-2019
runs-on: ${{ matrix.os || 'ubuntu-18.04' }}
steps:
- uses: actions/checkout@v4
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: Re_shellcode #项目名字
target: ${{ matrix.target }}
tar: unix
zip: windows
token: ${{ secrets.ACTION_ACCESS }}