fix(ci-cd): Fix ci:cd

This commit is contained in:
Myzel394 2024-10-20 13:57:36 +02:00
parent 76180857bf
commit 53de0b757c
No known key found for this signature in database
GPG Key ID: ED20A1D1D423AF3F

View File

@ -118,7 +118,7 @@ jobs:
- name: Shrink binary
if: ${{ matrix.goos == 'linux' }}
run: nix develop .#"shrink" --command bash -c "upx dist/out/config-lsp"
run: nix develop .#"vs-code-extension" --command bash -c "upx dist/out/config-lsp"
- name: Package extension
run: nix develop .#"vs-code-extension" --command bash -c "cd dist && vsce package --target ${{ matrix.vscode_target }}"
@ -130,8 +130,11 @@ jobs:
with:
files: '*.vsix'
- name: Upload extension to VS Code Marketplace
run: nix develop .#"vs-code-extension" --command bash -c "vsce publish --packagePath *.vsix"
env:
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}
- name: Set .env
run: |
touch .env
echo "VSCE_PAT=${{ secrets.VSCE_TOKEN }}" >> .env
- name: Upload extension to VS Code Marketplace
run: nix develop .#"vs-code-extension" --command bash -c "source .env && vsce publish --packagePath *.vsix"