6
6
workflow_dispatch :
7
7
8
8
jobs :
9
- # https://github.com/mislav/bump-homebrew-formula-action
10
- publish-to-brew :
11
- name : post / homebrew
12
- runs-on : macos-latest
13
- steps :
14
- - uses : mislav/bump-homebrew-formula-action@v1
15
- with :
16
- formula-name : t-rec
17
- env :
18
- COMMITTER_TOKEN : ${{ secrets.COMMITTER_TOKEN }}
19
-
20
9
release :
21
10
runs-on : ${{ matrix.os }}
22
11
strategy :
@@ -58,10 +47,10 @@ jobs:
58
47
env :
59
48
TARGET : ${{ matrix.target }}
60
49
TAG : ${{ github.event.release.tag_name }}
50
+ FILENAME : ${{ matrix.binName }}-$TAG-$TARGET.tar.gz
61
51
run : |
62
- filename="t-rec-$TAG-$TARGET.tar.gz"
63
- tar -czvf "$filename" README.md LICENSE -C "target/$TARGET/release" "${{ matrix.binName }}"
64
- echo "::set-output name=filename::$filename"
52
+ tar -czvf "$FILENAME" README.md LICENSE -C "target/$TARGET/release" "${{ matrix.binName }}"
53
+ echo "::set-output name=filename::$FILENAME"
65
54
- name : Upload Archive
66
55
uses : ncipollo/release-action@v1.8.7
67
56
with :
@@ -80,19 +69,22 @@ jobs:
80
69
steps :
81
70
- uses : actions/checkout@v2
82
71
- name : build .deb file
72
+ env :
73
+ TARGET : x86_64-unknown-linux-musl
74
+ TAG : ${{ github.event.release.tag_name }}
83
75
uses : sassman/rust-deb-builder@v1
84
76
- name : Archive deb artifact
85
77
uses : actions/upload-artifact@v2
86
78
with :
87
- name : t-rec-amd64-static .deb
88
- path : target/x86_64-unknown-linux-musl /debian/t-rec*.deb
79
+ name : t-rec-$TAG-$TARGET .deb
80
+ path : target/$TARGET /debian/t-rec*.deb
89
81
- name : upload deb file
90
82
uses : ncipollo/release-action@v1.8.7
91
83
with :
92
84
token : ${{ secrets.GITHUB_TOKEN }}
93
85
allowUpdates : true
94
86
artifactErrorsFailBuild : true
95
- artifacts : target/x86_64-unknown-linux-musl /debian/t-rec*.deb
87
+ artifacts : target/$TARGET /debian/t-rec*.deb
96
88
artifactContentType : application/octet-stream
97
89
omitBodyDuringUpdate : true
98
90
omitNameDuringUpdate : true
0 commit comments