-
Notifications
You must be signed in to change notification settings - Fork 43
47 lines (44 loc) · 1.11 KB
/
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
44
45
46
47
name: Create Release
on:
push:
tags:
- "*"
env:
CARGO_TERM_COLOR: always
GO_VERSION: '1.21'
ACTION_MSRV_TOOLCHAIN: 1.75.0
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get branch names
id: branch-name
uses: tj-actions/branch-names@v8
- name: Checkout
uses: actions/checkout@v4
- name: Setup Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: .github/install-deps
- name: Select Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env['ACTION_MSRV_TOOLCHAIN'] }}
default: true
override: true
components: rustfmt
- name: Build
run: cargo build
- name: Create Release Packaging
run: make create-release-packages
env:
CI_TAG: ${{ steps.branch-name.outputs.tag }}
- name: Release
uses: softprops/action-gh-release@v2
with:
files: "*.tar.gz"