From 8be9aae05dd86ab8735342ec35bc6d2791703885 Mon Sep 17 00:00:00 2001 From: christoph_xd Date: Wed, 6 Aug 2025 20:09:15 +0200 Subject: [PATCH] update pipline --- .gitea/workflows/build_and_puplish.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build_and_puplish.yml b/.gitea/workflows/build_and_puplish.yml index 29bf449..ea15e4d 100644 --- a/.gitea/workflows/build_and_puplish.yml +++ b/.gitea/workflows/build_and_puplish.yml @@ -1,7 +1,7 @@ on: push: tags: - - "*" + - "*" jobs: build_and_publish: runs-on: ubuntu-latest @@ -35,7 +35,13 @@ jobs: git add package.json git commit -m "Update version to ${{ github.ref_name }}" git push origin HEAD:main - - name: Publish to Visual Studio Marketplace + - name: Publish to Visual Studio Marketplace (Pre-Release) + if: contains(github.ref_name, '-') + run: vsce publish --pre-release + env: + VSCE_PAT: ${{ secrets.VSCODE_MARKETPALCE }} + - name: Publish to Visual Studio Marketplace (Stable) + if: ${{ !contains(github.ref_name, '-') }} run: vsce publish env: VSCE_PAT: ${{ secrets.VSCODE_MARKETPALCE }}