Skip to content

Commit b51160b

Browse files
committed
Replace chrome web store publish workflow
1 parent 31e03e3 commit b51160b

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

.github/workflows/main.yml

+11-15
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: |
2222
mkdir output
2323
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
2525
echo $VERSION >> ./output/version.txt
2626
2727
- name: Upload output as artifact
@@ -34,24 +34,20 @@ jobs:
3434
runs-on: self-hosted
3535
needs: build
3636
steps:
37-
- name: Download output artifact
37+
- name: Download output artifact for publishing
3838
uses: actions/download-artifact@v4
3939
with:
4040
name: output
4141

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+
uses: mnao305/[email protected]
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
5551

5652
release:
5753
runs-on: self-hosted

0 commit comments

Comments
 (0)