Update .gitea/workflows/build_and_puplish.yml
/ build_and_publish (release) Successful in 41s

This commit is contained in:
2025-08-06 18:21:06 +00:00
parent 7d83ae1012
commit ccd22e4343
+4 -5
View File
@@ -1,7 +1,6 @@
on: on:
push: release:
tags: types: [published]
- "*"
jobs: jobs:
build_and_publish: build_and_publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -36,12 +35,12 @@ jobs:
git commit -m "Update version to ${{ github.ref_name }}" git commit -m "Update version to ${{ github.ref_name }}"
git push origin HEAD:main git push origin HEAD:main
- name: Publish to Visual Studio Marketplace (Pre-Release) - name: Publish to Visual Studio Marketplace (Pre-Release)
if: contains(github.ref_name, '-') if: ${{ github.event.release.prerelease }}
run: vsce publish --pre-release run: vsce publish --pre-release
env: env:
VSCE_PAT: ${{ secrets.VSCODE_MARKETPALCE }} VSCE_PAT: ${{ secrets.VSCODE_MARKETPALCE }}
- name: Publish to Visual Studio Marketplace (Stable) - name: Publish to Visual Studio Marketplace (Stable)
if: ${{ !contains(github.ref_name, '-') }} if: ${{ !github.event.release.prerelease }}
run: vsce publish run: vsce publish
env: env:
VSCE_PAT: ${{ secrets.VSCODE_MARKETPALCE }} VSCE_PAT: ${{ secrets.VSCODE_MARKETPALCE }}