Skip to content

Commit 17285ef

Browse files
committed
Merge assets and release workflows
1 parent a37c369 commit 17285ef

File tree

2 files changed

+40
-58
lines changed

2 files changed

+40
-58
lines changed

.github/workflows/assets.yaml

-57
This file was deleted.

.github/workflows/release.yaml

+40-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,46 @@ defaults:
1616
shell: bash
1717

1818
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:
2059
runs-on: ubuntu-latest
2160
steps:
2261
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)