File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 1
- VUE_APP_GITTAG = v0.9.3
1
+ VUE_APP_GITTAG = v0.9.5
Original file line number Diff line number Diff line change @@ -31,10 +31,15 @@ jobs:
31
31
with :
32
32
fetch-depth : 0
33
33
34
+
35
+ - name : Get git tag
36
+ uses : olegtarasov/get-tag@v2.1
37
+ id : tagName
38
+
34
39
- name : Build project
35
40
run : |
36
41
chmod +x build.sh
37
- ./build.sh
42
+ ./build.sh ${{ steps.tagName.outputs.tag }}
38
43
39
44
- name : Upload
40
45
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change @@ -4,10 +4,17 @@ importpath="github.com/scutrobotlab/asuwave/helper"
4
4
build_prefix=" asuwave_"
5
5
os_list=(" linux" " darwin" " windows" )
6
6
arch_list=(" amd64" " arm64" )
7
- gittag=` git describe --tags --abbrev=0`
8
- echo ${gittag}
7
+ if [ -v $1 ];
8
+ then
9
+ echo " No"
10
+ gittag=` git describe --tags --abbrev=0`
11
+ else
12
+ echo " Yes"
13
+ gittag=$1
14
+ fi
9
15
10
- sed -i " s/^VUE_APP_GITTAG=.*/VUE_APP_GITTAG=${gittag} /g" .env
16
+ echo ${gittag}
17
+ sed -i " s/VUE_APP_GITTAG=.*/VUE_APP_GITTAG=${gittag} /g" .env
11
18
cat .env
12
19
13
20
npm ci
You can’t perform that action at this time.
0 commit comments