Skip to content

Commit 3dd0e74

Browse files
Flatten release artefact folder structure
1 parent 3062d76 commit 3dd0e74

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,17 @@ jobs:
3232
- name: Build
3333
shell: bash
3434
run: |
35+
tag=$(git describe --tags --abbrev=0)
36+
3537
cargo build --release --target ${{ matrix.target }}
3638
3739
if [ "${{ matrix.os }}" = "windows-latest" ]; then
38-
bin="target/${{ matrix.target }}/release/livetagger.exe"
40+
bin="./target/${{ matrix.target }}/release/livetagger.exe"
3941
else
40-
bin="target/${{ matrix.target }}/release/livetagger"
42+
bin="./target/${{ matrix.target }}/release/livetagger"
4143
fi
4244
43-
echo "BIN=$bin" >> $GITHUB_ENV
44-
- name: Zip artifacts
45-
shell: bash
46-
run: |
47-
tag=$(git describe --tags --abbrev=0)
48-
49-
7z a "livetagger-$tag-${{ matrix.target }}.zip" $BIN
45+
7z a "livetagger-$tag-${{ matrix.target }}.zip" $bin
5046
- name: Publish
5147
uses: softprops/action-gh-release@v2
5248
with:

0 commit comments

Comments
 (0)