diff --git a/.github/workflows/create-vsix.yaml b/.github/workflows/create-vsix.yaml new file mode 100644 index 0000000..76779a1 --- /dev/null +++ b/.github/workflows/create-vsix.yaml @@ -0,0 +1,29 @@ +on: + push: + tags: + - "*" + +name: Deploy Extension +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - run: npm ci + - name: Create package + uses: HaaLeo/publish-vscode-extension@v1 + with: + dryRun: true + pat: https://stub.value + - name: Create release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ github.ref_name }} + run: | + gh release create "$tag" \ + --repo="$GITHUB_REPOSITORY" \ + --title="${tag#v}" \ + --generate-notes