mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-12 05:01:03 +00:00
pages
This commit is contained in:
parent
2aca3a9867
commit
c6fd565b7e
73
.github/workflows/main.yml
vendored
73
.github/workflows/main.yml
vendored
@ -1,49 +1,60 @@
|
|||||||
# This is a basic workflow to help you get started with Actions
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
name: CI
|
name: Deploy static content to Pages
|
||||||
|
|
||||||
# Controls when the action will run.
|
# Controls when the action will run.
|
||||||
on:
|
on:
|
||||||
# Triggers the workflow on push or pull request events but only for the master branch
|
# Triggers the workflow on push or pull request events but only for the master branch
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||||
|
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
||||||
|
concurrency:
|
||||||
|
group: "pages"
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build"
|
# Single deploy job since we're just deploying
|
||||||
build:
|
deploy:
|
||||||
# The type of runner that the job will run on
|
environment:
|
||||||
runs-on: ubuntu-latest
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
- name: Checkout
|
||||||
- uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
- name: install
|
||||||
- name: Run a one-line script
|
run: npm run installForce
|
||||||
run: |
|
- name: pack web
|
||||||
cd ./source
|
run: npm run ccp-pack-web
|
||||||
npm run build
|
- name: DeployWithDeleteLatestResult
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
- 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:
|
with:
|
||||||
# Path to WebExtension directory
|
personal_token: ${{ secrets.PERSONAL_TOKEN }}
|
||||||
zipFilePath: "./"
|
publish_dir: ./web
|
||||||
# Path to save result crx file
|
external_repository: tidys/cc-inspector-chrome
|
||||||
crxFilePath: "./"
|
publish_branch: gh-pages
|
||||||
# Contents of private key used to sign crx file
|
keep_files: true
|
||||||
privateKey: "./key.pem"
|
exclude_assets: '*.js,*.css'
|
||||||
# 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
|
- name: DeployJsCss
|
||||||
updateXmlPath:1 # optional
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
# Required, if you specified updateXmlPath. URL to the .crx file
|
with:
|
||||||
updateXmlCodebaseUrl: 1# optional
|
personal_token: ${{ secrets.PERSONAL_TOKEN }}
|
||||||
# App Id to use in update.xml file. Generated from private key by default
|
publish_dir: ./web
|
||||||
updateXmlAppId: 1# optional
|
external_repository: tidys/cc-inspector-chrome
|
||||||
|
publish_branch: gh-pages
|
||||||
|
keep_files: true
|
||||||
|
exclude_assets: ''
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
"@types/lodash": "^4.14.176",
|
"@types/lodash": "^4.14.176",
|
||||||
"@types/node": "16.11.12",
|
"@types/node": "16.11.12",
|
||||||
"@types/uuid": "^8.3.1",
|
"@types/uuid": "^8.3.1",
|
||||||
"@xuyanfeng/cc-ui": "file:.yalc/@xuyanfeng/cc-ui",
|
"@xuyanfeng/cc-ui": "0.2.37",
|
||||||
"cc-plugin": "file:.yalc/cc-plugin"
|
"cc-plugin": "2.2.2"
|
||||||
},
|
},
|
||||||
"name": "cc-plugin-demo",
|
"name": "cc-plugin-demo",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -31,4 +31,4 @@
|
|||||||
"tiny-emitter": "2.1.0",
|
"tiny-emitter": "2.1.0",
|
||||||
"uuid": "^8.3.2"
|
"uuid": "^8.3.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user