Skip to content

Commit

Permalink
Final tweaks for extension publish and zipping
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell committed Sep 14, 2023
1 parent 26baf90 commit 3074851
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
build:
needs: ["init"]
strategy:
fail-fast: false
matrix:
include:
- name: Windows x86_64
Expand Down Expand Up @@ -96,7 +97,7 @@ jobs:
run: just build --locked --release --target ${{ matrix.cargo-target }}

- name: Build & publish extension - VSCode
run: just vscode-publish ${{ matrix.vscode-target }}
run: just vscode-publish ${{ matrix.cargo-target }} ${{ matrix.vscode-target }}
env:
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}

Expand Down
8 changes: 4 additions & 4 deletions .justfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,20 @@ vscode-install DEBUG="false":
# Builds and publishes the VSCode extension to the marketplace
[no-exit-message]
vscode-publish TARGET:
vscode-publish TARGET_TRIPLE VSCODE_TARGET:
#!/usr/bin/env bash
set -euo pipefail
#
echo "🚧 [1/4] Building language server..."
just build --release
just build --release --target {{TARGET_TRIPLE}}
echo "📦 [2/4] Packing language server..."
just vscode-pack
echo "🧰 [3/4] Building extension..."
just vscode-build
echo "🚀 [4/4] Publishing extension..."
#
cd "{{VSCODE}}/"
vsce publish --target {{TARGET}}
vsce publish --target {{VSCODE_TARGET}}
#
echo "✅ Published extension successfully!"
Expand All @@ -105,7 +105,7 @@ zip-release TARGET_TRIPLE:
rm -rf release.zip
mkdir -p staging
cp "target/{{TARGET_TRIPLE}}/release/{{BIN_NAME}}{{EXT}}" staging/
cp "$(find "{{VSCODE}}/bin/" -name "*.vsix")" staging/
cp "$(find "{{VSCODE}}/bin/" -name "*.vsix")" staging/extension.vsix
cd staging
if [ "{{os_family()}}" = "windows-latest" ]; then
7z a ../release.zip *
Expand Down

0 comments on commit 3074851

Please sign in to comment.