Skip to content

Commit

Permalink
自动发版本
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Feb 27, 2024
1 parent 44e2361 commit c2308bf
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: publish

on:
push:
tags:
- "*"

env:
VSIX_NAME: y3-helper-${{ github.ref_name }}.vsix

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- name: Compile Client
shell: bash
run: |
npm install
npm install -g typescript
tsc -p ./
- name: Pack vsix
shell: bash
run: |
npm install -g @vscode/vsce
vsce package -o "${{ env.VSIX_NAME }}" ${{ github.ref_name }}
- name: Upload vsix
uses: actions/upload-artifact@v4
with:
name: ${{ env.VSIX_NAME }}
path: ${{ env.VSIX_NAME }}

- name: Publish to VSCode Market
run: vsce publish -i ${{ env.VSIX_NAME }} -p ${{ secrets.VSCODE_TOKEN }}

0 comments on commit c2308bf

Please sign in to comment.