Skip to content

Commit ec503ae

Browse files
authored
Tag releases and upload VSIX in autorelease workflow (#236)
1 parent 80ae6bc commit ec503ae

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/auto-release.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to VSCode marketplace
1+
name: Publish release
22
on:
33
push:
44
branches: [ master ]
@@ -20,9 +20,19 @@ jobs:
2020
run: npm ci
2121
- if: steps.check.outputs.changed == 'true'
2222
run: npm test
23-
- name: publish
23+
- name: package
24+
if: steps.check.outputs.changed == 'true'
25+
run: npm run package
26+
- name: publish to Github
27+
uses: ncipollo/release-action@v1
28+
if: steps.check.outputs.changed == 'true'
29+
with:
30+
artifacts: "vscode-clangd-*.vsix"
31+
tag: ${{ steps.check.outputs.version }}
32+
commit: ${{ steps.check.outputs.commit }}
33+
token: ${{ secrets.GITHUB_TOKEN }}
34+
- name: publish to VSCode Marketplace
2435
if: steps.check.outputs.changed == 'true'
2536
# The token will be expired in on 01/10/2022. Regenerate it at
2637
# https://llvm-vs-code-extensions.visualstudio.com/_usersSettings/tokens.
2738
run: npm run publish -- -p "${{ secrets.VSCODE_MARKETPLACE_TOKEN }}"
28-

0 commit comments

Comments
 (0)