diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fafa47c..d0e20d0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,8 +1,9 @@ name: Publish VS Code Extension on: - release: - types: [published] + push: + tags: + - 'v*' jobs: publish: @@ -21,7 +22,7 @@ jobs: - name: Install dependencies run: npm ci - - name: Update version from release tag + - name: Update version from tag run: | VERSION=${GITHUB_REF#refs/tags/v} npm version $VERSION --no-git-tag-version @@ -32,12 +33,12 @@ jobs: - name: Publish to marketplace run: npx @vscode/vsce publish --pat ${{ secrets.VSCE_PAT }} - - name: Upload VSIX as release asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create GitHub Release + uses: softprops/action-gh-release@v1 with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./humanagent-mcp-${{ github.event.release.tag_name }}.vsix - asset_name: humanagent-mcp-${{ github.event.release.tag_name }}.vsix - asset_content_type: application/zip \ No newline at end of file + files: ./humanagent-mcp-*.vsix + tag_name: ${{ github.ref_name }} + name: Release ${{ github.ref_name }} + generate_release_notes: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file