fix(ci-cd): Fix ci:cd

This commit is contained in:
Myzel394 2024-10-20 12:48:27 +02:00
parent dd9e92fca7
commit b43cfcae7a
No known key found for this signature in database
GPG Key ID: ED20A1D1D423AF3F

View File

@ -82,12 +82,12 @@ jobs:
os: ubuntu-latest os: ubuntu-latest
cross: false cross: false
- target: x86_64-pc-windows-msvc # - target: x86_64-pc-windows-msvc
os: windows-latest # os: windows-latest
cross: false # cross: false
- target: aarch64-pc-windows-msvc # - target: aarch64-pc-windows-msvc
os: windows-latest # os: windows-latest
cross: false # cross: false
steps: steps:
- name: Checkout - name: Checkout
@ -106,7 +106,7 @@ jobs:
run: nix build .#"vs-code-extension" run: nix build .#"vs-code-extension"
- name: Rename extension - name: Rename extension
run: mv result/*.vsix result/$(basename result/*.vsix)-${{ matrix.target }}.vsix run: cp result/*.vsix $(basename result/*.vsix)-${{ matrix.target }}.vsix
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
@ -123,14 +123,10 @@ jobs:
echo "target=linux-x64" >> $GITHUB_OUTPUT echo "target=linux-x64" >> $GITHUB_OUTPUT
elif [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then elif [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then
echo "target=linux-arm64" >> $GITHUB_OUTPUT echo "target=linux-arm64" >> $GITHUB_OUTPUT
elif [ "${{ matrix.target }}" = "x86_64-pc-windows-msvc" ]; then
echo "target=win32-x64" >> $GITHUB_OUTPUT
elif [ "${{ matrix.target }}" = "aarch64-pc-windows-msvc" ]; then
echo "target=win32-arm64" >> $GITHUB_OUTPUT
fi fi
- name: Upload extension to VS Code Marketplace - name: Upload extension to VS Code Marketplace
run: nix develop .#"vs-code-extension" --command bash -c "cd result && vsce publish --target ${{ steps.vscode_target.outputs.target }} --packagePath *.vsix" run: nix develop .#"vs-code-extension" --command bash -c "vsce publish --target ${{ steps.vscode_target.outputs.target }} --packagePath *.vsix"
env: env:
VSCE_PAT: ${{ secrets.VSCE_TOKEN }} VSCE_PAT: ${{ secrets.VSCE_TOKEN }}