# Runs on any Gitea Actions runner with the ubuntu-latest label (needs Node; no GPU, no models). name: ci on: push: branches: [main] tags: ['vscode-v*'] pull_request: jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: lfs: false # the models aren't needed to build or test the extension - uses: actions/setup-node@v4 with: node-version: 22 - run: npm run setup - run: npm test - run: npm run build - uses: actions/upload-artifact@v3 with: name: vsix path: extensions/vscode/*.vsix # On a vscode-v* tag, publish the release with the VSIX (repo secret RELEASE_TOKEN: write:repository). - if: startsWith(github.ref, 'refs/tags/vscode-v') env: GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN }} run: node scripts/publish-extension-release.mjs