Skip to content

Commit ebd2e20

Browse files
committed
Update github workflows
1 parent 63189c6 commit ebd2e20

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

.github/workflows/bundle.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Bundle extension
33
on:
44
push:
55
branches: [master]
6-
tags: ['*']
76
pull_request:
87
workflow_dispatch:
98

.github/workflows/release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release extension
2+
3+
on:
4+
push:
5+
tags: ['*']
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: '16.8.0'
17+
18+
- uses: actions/cache@v3
19+
with:
20+
path: 'node_modules'
21+
key: os-${{ runner.os }}-modules-${{ hashFiles('package-lock.json') }}
22+
23+
- run: npm ci
24+
25+
- run: npm run bundle
26+
27+
- name: Create Release
28+
id: create_release
29+
uses: actions/create-release@v1
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
tag_name: ${{ github.ref }}
34+
release_name: ${{ github.ref }}
35+
body: Release ${{ github.ref }}
36+
draft: false
37+
prerelease: false
38+
39+
- name: Upload Release Assets
40+
uses: shogo82148/actions-upload-release-asset@v1
41+
with:
42+
upload_url: ${{ steps.create_release.outputs.upload_url }}
43+
asset_path: ./tarantool-lua-debugger-vscode-*.vsix

0 commit comments

Comments
 (0)