Skip to content

Commit

Permalink
Create upload.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjay7178 authored May 8, 2024
1 parent bcc4ae2 commit df293a2
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

name: Upload to Web Store
on:
push:
tags:
- '*'
jobs:
build-extension:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/buildextension

upload-extension:
runs-on: ubuntu-latest
needs: build-extension
steps:
- name: Download extension archive
uses: actions/download-artifact@v3
with:
name: extension-${{ github.sha }}

- name: Upload to webstore
uses: ExtensionNinja/extension-publish@main
with:
action: upload
extensionID: INSERT_YOUR_EXTENSION_ID
clientID: ${{ secrets.CI_GOOGLE_CLIENT_ID }}
clientSecret: ${{ secrets.CI_GOOGLE_CLIENT_SECRET }}
clientRefreshToken: ${{ secrets.CI_GOOGLE_REFRESH_TOKEN }}
extensionFile: extension-${{ github.event.pull_request.head.sha }}.zip

0 comments on commit df293a2

Please sign in to comment.