From fe41e88e692efd164d3415064be494332036cddd Mon Sep 17 00:00:00 2001 From: kuuuube Date: Tue, 24 Dec 2024 13:35:04 -0500 Subject: [PATCH 1/2] Add dev crx upload action --- .../workflows/publish-chrome-development.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/publish-chrome-development.yml b/.github/workflows/publish-chrome-development.yml index 2db3886104..79ecf0cc70 100644 --- a/.github/workflows/publish-chrome-development.yml +++ b/.github/workflows/publish-chrome-development.yml @@ -95,3 +95,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 From 65c745a9154672f22bc476c2f8015fa6779d56e3 Mon Sep 17 00:00:00 2001 From: kuuuube Date: Tue, 24 Dec 2024 13:42:07 -0500 Subject: [PATCH 2/2] Add permissions --- .github/workflows/publish-chrome-development.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-chrome-development.yml b/.github/workflows/publish-chrome-development.yml index 79ecf0cc70..73d498140b 100644 --- a/.github/workflows/publish-chrome-development.yml +++ b/.github/workflows/publish-chrome-development.yml @@ -21,6 +21,7 @@ jobs: releaseUploadUrl: ${{ steps.getZipAsset.outputs.releaseUploadUrl }} permissions: actions: write + contents: write steps: - name: Get the next attempt number id: getNextAttemptNumber