Skip to content

Commit

Permalink
ff addons
Browse files Browse the repository at this point in the history
  • Loading branch information
gmertes committed Apr 30, 2024
1 parent f5503ff commit c2b8f6f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
node-version: '20.x'

- run: git archive --format=zip --output=source.zip HEAD
- run: ls -lh

- name: Install dependencies
run: npm ci
Expand All @@ -34,7 +33,9 @@ jobs:
path: dist/*.zip

- name: Get zip path
run: echo "ZIP_CHROME=dist/$(ls dist | grep chrome)" >> $GITHUB_ENV
run: |
echo "ZIP_CHROME=dist/$(ls dist | grep chrome)" >> $GITHUB_ENV
echo "ZIP_FF=dist/$(ls dist | grep firefox)" >> $GITHUB_ENV
- name: Upload to Chrome Web Store
uses: mobilefirstllc/cws-publish@latest
Expand All @@ -44,4 +45,13 @@ jobs:
client_secret: ${{ secrets.CHROME_SECRET }}
refresh_token: ${{ secrets.CHROME_REFRESH_TOKEN }}
extension_id: 'nhjapojbdgmjlnmlenegefgfjannjchb'
zip_file: ${{ env.ZIP_CHROME }}
zip_file: ${{ env.ZIP_CHROME }}

- name: Upload to Firefox Add-ons
uses: yayuyokitano/firefox-addon@v0.0.3-alpha
with:
api_key: ${{ secrets.FF_ISSUER }}
api_secret: ${{ secrets.FF_SECRET }}
guid: ' {2ac87779-a246-4986-9f4e-882292ec11af}'
xpi_path: ${{ env.ZIP_FF }}
src_path: source.zip

0 comments on commit c2b8f6f

Please sign in to comment.