@@ -47,33 +47,35 @@ jobs:
47
47
- name : Test
48
48
run : yarn test
49
49
- name : Build
50
- run : yarn build
50
+ run : yarn build:plugin
51
+ - name : Pack
52
+ run : mv dist/plugin dist/plateau-plugin && zip -r dist/plateau-plugin.zip dist/plateau-plugin
51
53
- name : Save artifacts
52
54
uses : actions/upload-artifact@v2
53
55
if : github.ref == 'refs/heads/main'
54
56
with :
55
57
name : plateau-plugin
56
- path : plugin/dist/plugin
58
+ path : plugin/dist/plateau- plugin.zip
57
59
58
60
release-nightly :
59
61
name : Release nightly/rc
60
62
runs-on : ubuntu-latest
61
63
needs : [ci-plugin]
62
64
if : ${{ github.event.inputs.name != 'blank' }}
63
65
env :
64
- ARTIFACT : plateau-plugin_${{ github.event.inputs.name }}
66
+ ARTIFACT : plateau-plugin_${{ github.event.inputs.name }}.zip
65
67
steps :
66
68
- uses : actions/download-artifact@v2
67
69
with :
68
70
name : plateau-plugin
69
71
- name : Rename artifact
70
- run : mv plateau-plugin $ARTIFACT
72
+ run : mv plateau-plugin.zip $ARTIFACT
71
73
- name : Release
72
74
uses : ncipollo/release-action@v1
73
75
with :
74
76
allowUpdates : true
75
77
artifacts : ${{ env.ARTIFACT }}
76
- artifactContentType : application/gzip
78
+ artifactContentType : application/zip
77
79
commit : ${{ github.event.inputs.sha }}
78
80
name : ${{ github.event.inputs.name }}
79
81
tag : ${{ github.event.inputs.name }}
@@ -91,10 +93,10 @@ jobs:
91
93
uses : dsaltares/fetch-gh-release-asset@master
92
94
with :
93
95
version : tags/rc
94
- file : plateau-plugin_rc
96
+ file : plateau-plugin_rc.zip
95
97
token : ${{ secrets.GITHUB_TOKEN }}
96
98
- name : Rename artifact
97
- run : mv plateau-plugin_rc $ARTIFACT
99
+ run : mv plateau-plugin_rc.zip $ARTIFACT
98
100
- name : Download latest changelog
99
101
uses : dawidd6/action-download-artifact@v2
100
102
with :
@@ -105,7 +107,7 @@ jobs:
105
107
with :
106
108
allowUpdates : true
107
109
artifacts : ${{ env.ARTIFACT }}
108
- artifactContentType : application/gzip
110
+ artifactContentType : application/zip
109
111
commit : ${{ github.event.inputs.sha }}
110
112
name : ${{ github.event.inputs.new_tag }}
111
113
tag : ${{ github.event.inputs.new_tag }}
0 commit comments