-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (43 loc) · 1.51 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: release
on:
release:
types:
- released
jobs:
release:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
environment: TOKEN_VSCODE
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm ci
- name: Set Git identity
run: |
git config user.email "[email protected]"
git config user.name "nickyinluo"
- name: Publish to VS Marketplace
if: success()
run: |
npm run package.current
npm run release.current
env:
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}
- name: Get Current Version
id: vscode-ext-pkg-ver
uses: martinbeentjes/[email protected]
- name: Releaes to Github
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ steps.vscode-ext-pkg-ver.outputs.current-version}}
prerelease: false
title: "v${{ steps.vscode-ext-pkg-ver.outputs.current-version}}"
files: |
vscode-tencentcloud-terraform-*.vsix