Commit b51160b 1 parent 31e03e3 commit b51160b Copy full SHA for b51160b
File tree 1 file changed +11
-15
lines changed
1 file changed +11
-15
lines changed Original file line number Diff line number Diff line change 21
21
run : |
22
22
mkdir output
23
23
VERSION=$(jq -r '.version' ./app/manifest.json)
24
- zip -r ./output/ShaderToy-Chrome-Plugin-$VERSION .zip ./app
24
+ zip -r ./output/ShaderToy-Chrome-Plugin.zip ./app
25
25
echo $VERSION >> ./output/version.txt
26
26
27
27
- name : Upload output as artifact
@@ -34,24 +34,20 @@ jobs:
34
34
runs-on : self-hosted
35
35
needs : build
36
36
steps :
37
- - name : Download output artifact
37
+ - name : Download output artifact for publishing
38
38
uses : actions/download-artifact@v4
39
39
with :
40
40
name : output
41
41
42
- - name : Install Dependencies for Publishing
43
- run : |
44
- npm install -g chrome-webstore-upload-cli
45
-
46
- - name : Upload & Publish Extension to Chrome Store
47
- run : |
48
- VERSION=$(cat ./output/version.txt)
49
- chrome-webstore-upload upload \\
50
- --source ./output/ShaderToy-Chrome-Plugin-$VERSION.zip \\
51
- --extension-id $APP_ID \\
52
- --client-id $CLIENT_ID \\
53
- --client-secret $CLIENT_SECRET \\
54
- --refresh-token $REFRESH_TOKEN
42
+ - name : Upload to Chrome Web Store
43
+
44
+ with :
45
+ file-path : ./output/ShaderToy-Chrome-Plugin.zip
46
+ extension-id : $APP_ID
47
+ client-id : $CLIENT_ID
48
+ client-secret : $CLIENT_SECRET
49
+ refresh-token : $REFRESH_TOKEN
50
+ publish : true
55
51
56
52
release :
57
53
runs-on : self-hosted
You can’t perform that action at this time.
0 commit comments