-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 1.09 KB
/
create_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
name: Build release
on:
push:
branches:
- master
jobs:
release:
name: Build and Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build project
run: cargo build --release --locked
- name: Bump version and push tag/create release point
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
INITIAL_VERSION: 0.2.1
id: bump_version
- name: "Create GitHub Release"
uses: actions/create-release@v1 # https://github.com/actions/create-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{steps.bump_version.outputs.tag}}
- name: Upload binary to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/reqsink
asset_name: reqsink-linux-amd64
tag: ${{steps.bump_version.outputs.tag}}
overwrite: true