Skip to content

Commit

Permalink
fix: broken 0.1.24 and 0.1.25 builds + release musl binary
Browse files Browse the repository at this point in the history
fixes:

Published tekumara.typos-vscode (linux-x64) v0.1.25.
Publishing 'tekumara.typos-vscode (linux-x64) v0.1.25'...
Error: tekumara.typos-vscode (linux-x64) v0.1.25 already exists.
  • Loading branch information
tekumara committed Sep 23, 2024
1 parent dff8460 commit 82d3b09
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ jobs:
- run: cargo build --target ${{ matrix.target }} --release
- run: npm ci
- name: vsce package
# don't make a musl vsix package, because we can only publish a single
# linux-x64 package
if: matrix.target != 'x86_64-unknown-linux-musl'
# use bash on windows
shell: bash
run: |
Expand All @@ -78,12 +81,13 @@ jobs:
shell: bash
run: |
ver=${GITHUB_REF/refs\/*\//}
archive="typos-lsp-$ver-${{ matrix.target }}"
archive="dist/typos-lsp-$ver-${{ matrix.target }}"
mkdir -p dist
if [ "${{ matrix.os }}" == "windows-latest" ]; then
7z a "dist/${archive}.zip" target/${{ matrix.target }}/release/typos-lsp.exe
7z a "${archive}.zip" target/${{ matrix.target }}/release/typos-lsp.exe
else
tar czf "dist/${archive}.tar.gz" -C target/${{ matrix.target }}/release typos-lsp
tar czf "${archive}.tar.gz" -C target/${{ matrix.target }}/release typos-lsp
fi
ls -al dist/*
Expand Down

0 comments on commit 82d3b09

Please sign in to comment.