Skip to content

Commit 027f156

Browse files
authored
fix(ci): release-binary-assets.yml (#111)
- undo a couple of changes
1 parent fb1ade9 commit 027f156

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

.github/workflows/deploy.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,21 @@ jobs:
2929
with:
3030
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
3131

32+
# https://github.com/mislav/bump-homebrew-formula-action
33+
publish-to-brew:
34+
name: post / homebrew
35+
needs: [publish]
36+
runs-on: macos-latest
37+
steps:
38+
- uses: mislav/bump-homebrew-formula-action@v1
39+
with:
40+
formula-name: t-rec
41+
env:
42+
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
43+
3244
release:
3345
name: post / github release
34-
needs: publish
46+
needs: [publish]
3547
runs-on: ubuntu-latest
3648
steps:
3749
- uses: actions/checkout@v2

.github/workflows/release-binary-assets.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,6 @@ on:
66
workflow_dispatch:
77

88
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-
209
release:
2110
runs-on: ${{ matrix.os }}
2211
strategy:
@@ -58,10 +47,10 @@ jobs:
5847
env:
5948
TARGET: ${{ matrix.target }}
6049
TAG: ${{ github.event.release.tag_name }}
50+
FILENAME: ${{ matrix.binName }}-$TAG-$TARGET.tar.gz
6151
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"
6554
- name: Upload Archive
6655
uses: ncipollo/release-action@v1.8.7
6756
with:
@@ -80,19 +69,22 @@ jobs:
8069
steps:
8170
- uses: actions/checkout@v2
8271
- name: build .deb file
72+
env:
73+
TARGET: x86_64-unknown-linux-musl
74+
TAG: ${{ github.event.release.tag_name }}
8375
uses: sassman/rust-deb-builder@v1
8476
- name: Archive deb artifact
8577
uses: actions/upload-artifact@v2
8678
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
8981
- name: upload deb file
9082
uses: ncipollo/release-action@v1.8.7
9183
with:
9284
token: ${{ secrets.GITHUB_TOKEN }}
9385
allowUpdates: true
9486
artifactErrorsFailBuild: true
95-
artifacts: target/x86_64-unknown-linux-musl/debian/t-rec*.deb
87+
artifacts: target/$TARGET/debian/t-rec*.deb
9688
artifactContentType: application/octet-stream
9789
omitBodyDuringUpdate: true
9890
omitNameDuringUpdate: true

0 commit comments

Comments
 (0)