Skip to content

Commit

Permalink
publish vscode package from action workflow (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qusic committed Apr 15, 2023
1 parent 9b042d3 commit 09843dc
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
sudo apt install -y ninja-build
;;
macOS)
addpath "$(brew --prefix llvm@14)/bin"
brew install ninja
brew install llvm@15 ninja
addpath "$(brew --prefix llvm@15)/bin"
;;
Windows)
choco install ninja
Expand Down Expand Up @@ -95,6 +95,8 @@ jobs:
needs: validate
runs-on: ubuntu-latest
steps:
- name: Install Tools
run: npm install --global @vscode/vsce
- name: Download Archive
uses: actions/download-artifact@v3
with:
Expand All @@ -105,10 +107,27 @@ jobs:
with:
name: addons
path: build
- name: Generate Packages
run: npx vsce package --out gnls.vsix
- name: Upload Packages
- name: Generate Package
run: vsce package --out gnls.vsix
- name: Upload Package
uses: actions/upload-artifact@v3
with:
name: packages
name: package
path: gnls.vsix
publish:
name: Publish
needs: build
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Install Tools
run: npm install --global @vscode/vsce
- name: Download Package
uses: actions/download-artifact@v3
with:
name: package
path: .
- name: Publish Package
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
run: vsce publish --skip-duplicate --packagePath gnls.vsix

0 comments on commit 09843dc

Please sign in to comment.