8
8
runs-on : ubuntu-18.04
9
9
steps :
10
10
- name : Check out code
11
- if : startsWith(github.ref, 'v')
11
+ if : startsWith(github.ref, 'refs/tags/ v')
12
12
uses : actions/checkout@v1
13
13
- name : create release
14
- if : startsWith(github.ref, 'v')
14
+ if : startsWith(github.ref, 'refs/tags/ v')
15
15
id : create_release
16
16
uses : actions/create-release@v1
17
17
env :
@@ -22,10 +22,10 @@ jobs:
22
22
draft : false
23
23
prerelease : false
24
24
- name : Output Release URL File
25
- if : startsWith(github.ref, 'v')
25
+ if : startsWith(github.ref, 'refs/tags/ v')
26
26
run : echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt
27
27
- name : Save Release URL File for publish
28
- if : startsWith(github.ref, 'v')
28
+ if : startsWith(github.ref, 'refs/tags/ v')
29
29
uses : actions/upload-artifact@v1
30
30
with :
31
31
name : release_url
@@ -46,18 +46,18 @@ jobs:
46
46
- run : ./make_layer.sh ${{ matrix.runtime }}
47
47
- run : ./run_tests.sh ${{ matrix.runtime }}
48
48
- name : Load Release URL File from release job
49
- if : startsWith(github.ref, 'v')
49
+ if : startsWith(github.ref, 'refs/tags/ v')
50
50
uses : actions/download-artifact@v1
51
51
with :
52
52
name : release_url
53
53
- name : Get Release File Name & Upload URL
54
- if : startsWith(github.ref, 'v')
54
+ if : startsWith(github.ref, 'refs/tags/ v')
55
55
id : get_release_info
56
56
run : |
57
57
value=`cat release_url/release_url.txt`
58
58
echo ::set-output name=upload_url::$value
59
59
- name : Upload Release Asset
60
- if : startsWith(github.ref, 'v')
60
+ if : startsWith(github.ref, 'refs/tags/ v')
61
61
id : upload-release-asset
62
62
63
63
env :
0 commit comments