Skip to content

Commit 5ad08fe

Browse files
github release workflow
1 parent 11cc05b commit 5ad08fe

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

.github/workflows/build.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: release
2+
on:
3+
push:
4+
tags:
5+
- 'v[0-9]+.[0-9]+.[0-9]+'
6+
# Allows you to run this workflow manually from the Actions tab
7+
workflow_dispatch:
8+
9+
jobs:
10+
11+
release:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Check out Git repository
16+
uses: actions/checkout@v4
17+
with:
18+
submodules: 'true'
19+
20+
- name: Install Node.js, NPM and Yarn
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
25+
- name: Install VUE Dependencies
26+
run: 'npm install --prefix=./src-vue/'
27+
28+
- name: Build VUE
29+
run: 'npm run build_vue'
30+
31+
- name: Install PLUGIN Dependencies
32+
run: 'npm install'
33+
34+
- name: Build PLUGIN
35+
run: 'npm run build_plugin'
36+
37+
- name: Create Release
38+
id: create_release
39+
uses: softprops/action-gh-release@v1
40+
with:
41+
tag_name: ${{ github.event.release.tag_name }}
42+
files: arc-vs-code-${{ github.event.release.tag_name }}.vsix
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"vscode:prepublish": "npm run compile",
100100
"build_vue": "npm run build --prefix=./src-vue/",
101101
"build_plugin": "./node_modules/vsce/vsce package",
102-
"install": "code --uninstall-extension nfdi4plants.arc-vs-code; code --install-extension ./arc-vs-code-1.0.0.vsix",
102+
"install_code": "code --uninstall-extension nfdi4plants.arc-vs-code; code --install-extension ./arc-vs-code-1.0.0.vsix",
103103
"full": "npm run build_vue;npm run build_plugin;npm run install; code",
104104
"full2": "npm run build_plugin;npm run install; code",
105105
"compile": "tsc -p ./",

0 commit comments

Comments
 (0)