forked from FooSoft/yomichan
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add upload_url to publish-chrome-development action
* Add upload_url to publish-chrome-development action * Split release crx to separate job * Add release download to release-crx * Add asset_content_type <rikaitan.link>OWRlZjlkNTc0MWMyZjFhZDgwZDExYjhlZDMyMDk2NTZjNzgwYmY5Mwo=</rikaitan.link>
- Loading branch information
1 parent
39d8d09
commit 606ad29
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,9 @@ on: | |
description: "Max attempts" | ||
required: false | ||
default: "10" | ||
upload_url: | ||
description: "The upload_url from the release created by create-prerelease-on-tag.yml" | ||
required: true | ||
permissions: | ||
contents: read | ||
jobs: | ||
|
@@ -97,6 +100,19 @@ jobs: | |
extensionId: ${{ secrets.G_DEVELOPMENT_EXTENSION_ID }} | ||
apiAccessToken: ${{ steps.fetchAccessToken.outputs.accessToken }} | ||
|
||
release-crx: | ||
runs-on: ubuntu-latest | ||
environment: cd | ||
permissions: | ||
actions: write | ||
contents: write | ||
|
||
steps: | ||
- uses: robinraju/release-downloader@a96f54c1b5f5e09e47d9504526e96febd949d4c2 # [email protected] | ||
with: | ||
tag: ${{ github.ref_name }} | ||
fileName: "*" | ||
|
||
- name: Sign Chrome crx for offline distribution | ||
uses: cardinalby/webext-buildtools-chrome-crx-action@v2 | ||
with: | ||
|
@@ -113,3 +129,4 @@ jobs: | |
upload_url: ${{ inputs.upload_url }} | ||
asset_path: rikaitan-chrome-dev.crx | ||
asset_name: rikaitan-chrome-dev.crx | ||
asset_content_type: application/x-chrome-extension |