Skip to content

Commit

Permalink
Update publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BirjuVachhani committed Dec 20, 2022
1 parent bc78e4d commit a450ae2
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ main ]

jobs:
publish:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -31,12 +31,46 @@ jobs:
cd build
zip -r extension.zip web
cd ..
- name: Upload job artifact
uses: actions/upload-artifact@v3
with:
path: build/extension.zip

publish_chrome:
needs: [ build ]
runs-on: ubuntu-latest
steps:
- name: Download job artifact
uses: actions/download-artifact@v3
with:
path: dist
- name: Display structure of downloaded files
run: ls -R dist
- name: Chrome Extension upload & publish
uses: Passiverecords/[email protected]
with:
refresh-token: ${{ secrets.REFRESH_TOKEN }}
client-id: ${{ secrets.CLIENT_ID }}
client-secret: ${{ secrets.CLIENT_SECRET }}
file-name: build/extension.zip
file-name: dist/extension.zip
app-id: ${{ secrets.APP_ID }}
publish: true
publish: true

publish_edge:
needs: [ build ]
runs-on: ubuntu-latest
steps:
- name: Download job artifact
uses: actions/download-artifact@v3
with:
path: dist
- name: Display structure of downloaded files
run: ls -R dist
- name: Edge Add-on upload & publish
uses: wdzeng/edge-addon@v1
with:
product-id: ${{ secrets.EDGE_PRODUCT_ID }}
zip-path: dist/extension.zip
client-id: ${{ secrets.EDGE_CLIENT_ID }}
client-secret: ${{ secrets.EDGE_CLIENT_SECRET }}
access-token-url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }}

0 comments on commit a450ae2

Please sign in to comment.