Skip to content

Commit

Permalink
Add pack chrome crx to release
Browse files Browse the repository at this point in the history
  • Loading branch information
hanydd committed Sep 14, 2024
1 parent b5dd6bb commit d62a3d9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
privateKey: ${{ secrets.PEM_KEY }}
- uses: actions/upload-artifact@v4
with:
name: Chrome.crx
name: Chrome
path: ./builds/ChromeExtension.crx

# Create Firefox artifacts
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ jobs:
path: ./builds/ChromeExtension.zip
repo-token: ${{ secrets.GITHUB_TOKEN }}

# Create Chrome crx file
- name: Create Chrome CRX
uses: cardinalby/webext-buildtools-chrome-crx-action@v2
with:
zipFilePath: ./builds/ChromeExtension.zip
crxFilePath: ./builds/ChromeExtension.crx
privateKey: ${{ secrets.PEM_KEY }}
- name: Upload Chrome.crx to release
uses: Shopify/[email protected]
with:
name: Chrome.crx
path: ./builds/ChromeExtension.crx
repo-token: ${{ secrets.GITHUB_TOKEN }}

# Create Firefox artifacts
- name: Create Firefox artifacts
run: npm run build:firefox
Expand Down

0 comments on commit d62a3d9

Please sign in to comment.