From 53de0b757c06929e1a7cc5ae6126a41b87d1e30b Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Sun, 20 Oct 2024 13:57:36 +0200 Subject: [PATCH] fix(ci-cd): Fix ci:cd --- .github/workflows/release.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9fe37b9..9d7212e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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"