File tree 2 files changed +40
-58
lines changed
2 files changed +40
-58
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -16,7 +16,46 @@ defaults:
16
16
shell : bash
17
17
18
18
jobs :
19
- create-release :
19
+ upload-assets :
20
+ name : ${{ matrix.target }}
21
+ strategy :
22
+ matrix :
23
+ include :
24
+ - target : x86_64-unknown-linux-gnu
25
+ tap : true
26
+ - target : x86_64-apple-darwin
27
+ os : macos-latest
28
+ tap : true
29
+ - target : x86_64-pc-windows-msvc
30
+ os : windows-latest
31
+ tap : false
32
+ - target : x86_64-unknown-linux-musl
33
+ tap : false
34
+ runs-on : ${{ matrix.os || 'ubuntu-latest' }}
35
+ steps :
36
+ - uses : actions/checkout@v2
37
+ - uses : dtolnay/rust-toolchain@stable
38
+ - uses : taiki-e/upload-rust-binary-action@v1
39
+ with :
40
+ bin : zine
41
+ target : ${{ matrix.target }}
42
+ tar : all
43
+ zip : windows
44
+ features : openssl-vendored
45
+ env :
46
+ GITHUB_TOKEN : ${{ secrets.TOKEN }}
47
+ CARGO_PROFILE_RELEASE_LTO : true
48
+ - name : Get the version
49
+ id : get_version
50
+ run : echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
51
+ - name : Update zine homebrew formula
52
+ if : ${{ matrix.tap == true }}
53
+ run : |
54
+ curl -X POST -H "Accept: application/vnd.github.v3+json" \
55
+ -H "Authorization: token ${{ secrets.TOKEN }}" \
56
+ -d '{"event_type":"version-updated","client_payload":{"version":"${{ steps.get_version.outputs.VERSION }}"}}' \
57
+ https://api.github.com/repos/zineland/homebrew-tap/dispatches
58
+ cargo-publish :
20
59
runs-on : ubuntu-latest
21
60
steps :
22
61
- uses : actions/checkout@v2
You can’t perform that action at this time.
0 commit comments