Skip to content

Commit bb38c3f

Browse files
authored
fix(ci): fix undefined variables on release asset builds (#123)
1 parent f4861f5 commit bb38c3f

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,9 @@ jobs:
4545
id: archive
4646
shell: bash
4747
env:
48-
TARGET: ${{ matrix.target }}
49-
TAG: ${{ github.event.release.tag_name }}
50-
FILENAME: ${{ matrix.binName }}-$TAG-$TARGET.tar.gz
48+
FILENAME: ${{ matrix.binName }}-${{ github.event.release.tag_name }}-${{ matrix.target }}.tar.gz
5149
run: |
52-
tar -czvf "$FILENAME" README.md LICENSE -C "target/$TARGET/release" "${{ matrix.binName }}"
50+
tar -czvf "$FILENAME" README.md LICENSE -C "target/${{ matrix.target }}/release" "${{ matrix.binName }}"
5351
echo "::set-output name=filename::$FILENAME"
5452
- name: Upload Archive
5553
uses: ncipollo/release-action@v1.8.7
@@ -76,15 +74,15 @@ jobs:
7674
- name: Archive deb artifact
7775
uses: actions/upload-artifact@v2
7876
with:
79-
name: t-rec-$TAG-$TARGET.deb
80-
path: target/$TARGET/debian/t-rec*.deb
77+
name: t-rec-${{ github.event.release.tag_name }}-x86_64-unknown-linux-musl.deb
78+
path: target/x86_64-unknown-linux-musl/debian/t-rec*.deb
8179
- name: upload deb file
8280
uses: ncipollo/release-action@v1.8.7
8381
with:
8482
token: ${{ secrets.GITHUB_TOKEN }}
8583
allowUpdates: true
8684
artifactErrorsFailBuild: true
87-
artifacts: target/$TARGET/debian/t-rec*.deb
85+
artifacts: target/x86_64-unknown-linux-musl/debian/t-rec*.deb
8886
artifactContentType: application/octet-stream
8987
omitBodyDuringUpdate: true
9088
omitNameDuringUpdate: true

0 commit comments

Comments
 (0)