This commit is contained in:
xyf-mac
2021-11-08 11:24:48 +08:00
parent 13271d7c79
commit 59cf18f2f2
3 changed files with 23 additions and 15 deletions

View File

@@ -2,7 +2,7 @@
name: CI
# Controls when the action will run.
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
@@ -25,26 +25,22 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!
# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
cd ./source
npm run build
- name: webext-buildtools-chrome-crx-action
# You may pin to the exact commit or the version.
# uses: cardinalby/webext-buildtools-chrome-crx-action@6ffc20d012116ea3fa0c6697382b026fc7df9535
uses: cardinalby/webext-buildtools-chrome-crx-action@2.0.0
with:
# Path to WebExtension directory
zipFilePath: 1
zipFilePath: "./"
# Path to save result crx file
crxFilePath: 1
crxFilePath: "./"
# Contents of private key used to sign crx file
privateKey: 1
privateKey: "./key.pem"
# Path to save update.xml file for extensions hosted not on Chrome Web Store. This xml is used as response at url, specified in manifest's `update_url` key file
updateXmlPath:1 # optional
# Required, if you specified updateXmlPath. URL to the .crx file