Commit 2b575b2 1 parent b9d1127 commit 2b575b2 Copy full SHA for 2b575b2
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : Release pdf on tag
2
2
3
- on :
4
- push :
5
- tags :
6
- - ' *'
3
+ on : [push]
7
4
8
5
env :
9
6
FILE : main
22
19
name : main.zip
23
20
path : src/*.pdf
24
21
- name : Create Release
22
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
25
23
id : create_release
26
24
uses : actions/create-release@v1
27
25
env :
@@ -32,12 +30,14 @@ jobs:
32
30
draft : false
33
31
prerelease : false
34
32
- name : Prepare output path and output name
33
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
35
34
id : prepare_metadata
36
35
# upload-release-asset does not support wildcards or environment variables at the moment
37
36
run : |
38
37
echo ::set-output name=ARTIFACT_PATH::./src/$FILE.pdf
39
38
echo ::set-output name=ARTIFACT_NAME::$FILE.pdf
40
39
- name : Upload Release Asset
40
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
41
41
uses : actions/upload-release-asset@v1
42
42
env :
43
43
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments