@@ -2,7 +2,7 @@ name: release
2
2
on :
3
3
push :
4
4
tags :
5
- - " v[0-9]+.[0-9]+.[0-9]+"
5
+ - " v[0-9]+.[0-9]+.[0-9]+"
6
6
7
7
concurrency :
8
8
group : ${{ github.sha }}
@@ -16,50 +16,50 @@ jobs:
16
16
strategy :
17
17
matrix :
18
18
include :
19
- - build : linux
20
- os : ubuntu-18 .04
21
- rust : stable
22
- target : x86_64-unknown-linux-musl
23
- - build : macos
24
- os : macos-latest
25
- rust : stable
26
- target : x86_64-apple-darwin
19
+ - build : linux
20
+ os : ubuntu-20 .04
21
+ rust : stable
22
+ target : x86_64-unknown-linux-musl
23
+ - build : macos
24
+ os : macos-latest
25
+ rust : stable
26
+ target : x86_64-apple-darwin
27
27
env :
28
28
RUST_BACKTRACE : full
29
29
TARGET_DIR : ./target
30
30
steps :
31
- - name : Checkout repository
32
- uses : actions/checkout@v2
31
+ - name : Checkout repository
32
+ uses : actions/checkout@v2
33
33
34
- - name : Get the release version from the tag
35
- shell : bash
36
- if : env.FLOPHA_VERSION == ''
37
- run : |
38
- echo "FLOPHA_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
39
- echo "version is: ${{ env.FLOPHA_VERSION }}"
34
+ - name : Get the release version from the tag
35
+ shell : bash
36
+ if : env.FLOPHA_VERSION == ''
37
+ run : |
38
+ echo "FLOPHA_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
39
+ echo "version is: ${{ env.FLOPHA_VERSION }}"
40
40
41
- - name : Install packages (Ubuntu)
42
- if : matrix.os == 'ubuntu-18.04'
43
- run : |
44
- sudo apt-get update
45
- sudo apt-get install -y musl-tools
46
-
47
- - name : Install Rust
48
- uses : actions-rs/toolchain@v1
49
- with :
50
- toolchain : ${{ matrix.rust }}
51
- profile : minimal
52
- override : true
41
+ - name : Install packages (Ubuntu)
42
+ if : matrix.os == 'ubuntu-20.04'
43
+ run : |
44
+ sudo apt-get update
45
+ sudo apt-get install -y musl-tools
53
46
54
- - name : Build and Package
55
- shell : bash
56
- run : |
57
- scripts/package.sh --target ${{ matrix.target }}
58
- echo "ASSET=dist/flopha-${{ matrix.target }}.tar.gz" >> $GITHUB_ENV
47
+ - name : Install Rust
48
+ uses : actions-rs/toolchain@v1
49
+ with :
50
+ toolchain : ${{ matrix.rust }}
51
+ profile : minimal
52
+ override : true
59
53
60
- - name : Upload release archive
61
- uses : softprops/action-gh-release@v1
62
- if : startsWith(github.ref, 'refs/tags/')
63
- with :
64
- token : ${{ secrets.FLOPHA_GITHUB_TOKEN }}
65
- files : ${{ env.ASSET }}
54
+ - name : Build and Package
55
+ shell : bash
56
+ run : |
57
+ scripts/package.sh --target ${{ matrix.target }}
58
+ echo "ASSET=dist/flopha-${{ matrix.target }}.tar.gz" >> $GITHUB_ENV
59
+
60
+ - name : Upload release archive
61
+ uses : softprops/action-gh-release@v2
62
+ with :
63
+ tag_name : ${{ env.FLOPHA_VERSION }}
64
+ generate_release_notes : True
65
+ files : ${{ env.ASSET }}
0 commit comments