Skip to content

Commit

Permalink
feat: auto upload to chrome web store
Browse files Browse the repository at this point in the history
  • Loading branch information
simon511000 committed Apr 6, 2024
1 parent 509369a commit 7f93be5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- run: npm install npm@latest -g
- run: npm install
- run: npm run prod

- name: push MiaouNotes release
run: |
git config user.name github-actions[bot]
Expand All @@ -34,4 +35,21 @@ jobs:
git push origin master
git tag -a ${{ steps.release.outputs.tag_name }} -m 'chore: ${{ steps.release.outputs.tag_name }} release'
git push origin ${{ steps.release.outputs.tag_name }}
if: ${{ steps.release.outputs.release_created }}

- uses: vimtor/[email protected]
with:
files: dist/ icons/ manifest.json
dest: release.zip
if: ${{ steps.release.outputs.release_created }}

- name: Upload to Chrome Web Store
uses: mobilefirstllc/cws-publish@latest
with:
action: 'upload'
client_id: ${{ secrets.GOOGLE_CLIENT }}
client_secret: ${{ secrets.GOOGLE_SECRET }}
refresh_token: ${{ secrets.GOOGLE_TOKEN }}
extension_id: ${{ secrets.EXTENSION_ID }}
zip_file: 'release.zip'
if: ${{ steps.release.outputs.release_created }}
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7f93be5

Please sign in to comment.