Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit a474261

Browse files
committed
feat(ci): release auto upload to CWS
1 parent e3a07d4 commit a474261

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/build-release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626

2727
- name: Install pnpm
2828
uses: pnpm/action-setup@v2
29-
id: pnpm-install
3029
with:
3130
version: latest
3231

@@ -42,6 +41,17 @@ jobs:
4241
zip -r ../crosssync-${{ env.TAG_NAME }}.zip ./
4342
cd ../
4443
44+
- name: Submit to Chrome Web Store
45+
continue-on-error: true
46+
run: |
47+
pnpm install chrome-webstore-upload-cli --save-dev
48+
npx chrome-webstore-upload-cli upload --source ./crosssync-${{ env.TAG_NAME }}.zip --auto-publish
49+
env:
50+
EXTENSION_ID: cilehfhekljoecdbbimgebbncpjagmon
51+
CLIENT_ID: ${{ secrets.CWS_CLIENT_ID }}
52+
CLIENT_SECRET: ${{ secrets.CWS_CLIENT_SECRET }}
53+
REFRESH_TOKEN: ${{ secrets.CWS_REFRESH_TOKEN }}
54+
4555
- name: Release
4656
uses: softprops/action-gh-release@v1
4757
with:

0 commit comments

Comments
 (0)