Skip to content

Commit 5f0ffb9

Browse files
committed
Publish Workflow
1 parent 093fdd0 commit 5f0ffb9

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish Extension
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- run: yarn install
14+
- run: yarn run compile
15+
- uses: lannonbr/vsce-action@master
16+
with:
17+
args: "publish -p $VSCE_PAT"
18+
env:
19+
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}
20+
- uses: lannonbr/vsce-action@master
21+
name: package last release
22+
with:
23+
args: "package"
24+
- name: package-version
25+
run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
26+
- name: Create Release
27+
uses: ncipollo/release-action@v1
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
with:
31+
token: ${{ secrets.GITHUB_TOKEN }}
32+
tag: v${{ env.PACKAGE_VERSION }}
33+
artifacts: "*.vsix"
34+
body: "Krinql VSCode Release"
35+
draft: false
36+
allowUpdates: true
37+
prerelease: false
38+
replacesArtifacts: true

0 commit comments

Comments
 (0)