Update .gitea/workflows/build_and_puplish.yml
/ build_and_publish (push) Failing after 15s

This commit is contained in:
2025-01-08 08:45:31 +00:00
parent 62fa99959c
commit 896f27145c
+29 -17
View File
@@ -12,21 +12,33 @@ jobs:
run: | run: |
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME" echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ github.ref_name }}" echo "Tag name from github.ref_name: ${{ github.ref_name }}"
# - name: Install NodeJS - name: Install NodeJS
# uses: actions/setup-node@v4 uses: actions/setup-node@v4
# with: with:
# node-version: 20 node-version: 20
# - name: Install NPM - name: Install NPM Packages
# run: npm i run: npm i
# - name: Install VSCE - name: Install VSCE
# run: npm -g i @vscode/vsce run: npm -g i @vscode/vsce
- name: Tag Name - name: Extract tag name
run: echo ${{ gitea.tag }} run: echo "TAG_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV
# - name: Build Package Files
# run: npm run package - name: Update package.json version
# - name: Publish to Visual Studio Marketplace run: |
# uses: HaaLeo/publish-vscode-extension@v1 TAG_NAME=${GITHUB_ENV##*/}
# with: npm version --no-git-tag-version $TAG_NAME
# pat: ${{ secrets.VSCODE_MARKETPALCE }} - name: Commit changes
# registryUrl: https://marketplace.visualstudio.com run: |
git config user.name ${{ vars.USERNAME_GIT}}
git config user.email ${{ vars.EMAIL_GIT}}
git add package.json
git commit -m "Update package.json version to $TAG_NAME"
git push origin HEAD
- name: Build Package Files
run: npm run package
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VSCODE_MARKETPALCE }}
registryUrl: https://marketplace.visualstudio.com