diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml new file mode 100644 index 0000000..e59a327 --- /dev/null +++ b/.github/workflows/release-package.yml @@ -0,0 +1,36 @@ +name: Package and attach VSIX on release + +on: + release: + types: [published] + +permissions: + contents: write + +jobs: + build-and-upload: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Package VS Code extension + run: npm run vscode:package + + - name: Upload VSIX to release assets + uses: softprops/action-gh-release@v2 + with: + files: "*.vsix" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +