Skip to content

Commit

Permalink
Add chrome dev crx to releases (#1693)
Browse files Browse the repository at this point in the history
* Add dev crx upload action

* Add permissions
  • Loading branch information
Kuuuube authored Dec 25, 2024
1 parent cd60eba commit db15394
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/publish-chrome-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
releaseUploadUrl: ${{ steps.getZipAsset.outputs.releaseUploadUrl }}
permissions:
actions: write
contents: write
steps:
- name: Get the next attempt number
id: getNextAttemptNumber
Expand Down Expand Up @@ -95,3 +96,20 @@ jobs:
with:
extensionId: ${{ secrets.G_DEVELOPMENT_EXTENSION_ID }}
apiAccessToken: ${{ steps.fetchAccessToken.outputs.accessToken }}

- name: Sign Chrome crx for offline distribution
uses: cardinalby/webext-buildtools-chrome-crx-action@v2
with:
zipFilePath: 'yomitan-chrome-dev.zip'
crxFilePath: 'yomitan-chrome-dev.crx'
privateKey: ${{ secrets.CHROME_CRX_PRIVATE_KEY }}

- name: Upload offline crx release asset
id: uploadReleaseAsset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ inputs.upload_url }}
asset_path: yomitan-chrome-dev.crx
asset_name: yomitan-chrome-dev.crx

0 comments on commit db15394

Please sign in to comment.