v1.1.3/v1.12: Fix empty-cache rescan, 413 handling, exclude project f… #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish VS Code Extension | |
| on: | |
| push: | |
| branches: [ master, main ] | |
| workflow_dispatch: | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Package extension | |
| run: npx @vscode/vsce package --no-dependencies | |
| - name: Upload VSIX artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: o360-sast-vscode | |
| path: "*.vsix" | |
| if-no-files-found: error | |
| retention-days: 30 | |
| - name: Publish to VS Code Marketplace | |
| env: | |
| MARKETPLACE_PAT: ${{ secrets.MARKETPLACE_PAT }} | |
| run: npx @vscode/vsce publish --no-dependencies -p "$MARKETPLACE_PAT" |