fix: only publish when a tag is created (#332)

This commit is contained in:
ykiko
2025-12-29 11:55:18 +08:00
committed by GitHub
parent 7a29560065
commit aa3e5111de
5 changed files with 166 additions and 132 deletions

View File

@@ -56,11 +56,10 @@ jobs:
xmake lua os.rmdir "C:/Program Files/LLVM"
- name: Package
run: |
pixi run package
run: pixi run package
- name: Upload Main Package to Release
if: github.event_name == 'push'
if: startsWith(github.ref, 'refs/tags/v')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
@@ -70,7 +69,7 @@ jobs:
overwrite: true
- name: Upload Symbol Package to Release
if: github.event_name == 'push'
if: startsWith(github.ref, 'refs/tags/v')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -30,7 +30,7 @@ jobs:
- name: Upload .vsix to Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/v')
with:
files: "editors/vscode/*.vsix"
tag_name: ${{ github.ref }}