File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 53
53
cache : ' npm'
54
54
- run : npm ci
55
55
- run : npm run build --if-present
56
+ - name : Archive dist
57
+ uses : actions/upload-artifact@v3
58
+ with :
59
+ name : dist
60
+ path : dist
56
61
- name : Create Release
62
+ if : github.ref_type == "tag"
57
63
id : create_release
58
64
uses : actions/create-release@v1
59
65
env :
64
70
draft : ${{ contains( github.ref_name, 'rc') }}
65
71
prerelease : false
66
72
- name : Create archive
73
+ if : github.ref_type == "tag"
67
74
run : tar czf frontend.tar.gz dist
68
75
- name : Upload Built Frontend
76
+ if : github.ref_type == "tag"
69
77
uses : actions/upload-release-asset@v1
70
78
env :
71
79
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -75,15 +83,11 @@ jobs:
75
83
asset_name : frontend.tar.gz
76
84
asset_content_type : application/gzip
77
85
- uses : eregon/publish-release@v1
86
+ if : github.ref_type == "tag"
78
87
env :
79
88
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
80
89
with :
81
90
release_id : ${{ steps.create_release.outputs.id }}
82
- - name : Archive dist
83
- uses : actions/upload-artifact@v3
84
- with :
85
- name : dist
86
- path : dist
87
91
88
92
release :
89
93
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments