迁移部分内容
Some checks failed
test / Run tests (push) Failing after 55s
build / Build (push) Failing after 1m18s
Some checks failed
test / Run tests (push) Failing after 55s
build / Build (push) Failing after 1m18s
This commit is contained in:
45
.github/workflows/build.yaml
vendored
Normal file
45
.github/workflows/build.yaml
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- release/*
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
build-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
name: Build
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'npm'
|
||||
|
||||
- name: Package with Node
|
||||
env:
|
||||
CHROME_PEM: ${{ secrets.CHROME_PEM }}
|
||||
run: |
|
||||
mkdir dist
|
||||
echo "$CHROME_PEM" > ./dist/scriptcat.pem
|
||||
chmod 600 ./dist/scriptcat.pem
|
||||
npm ci
|
||||
npm run pack
|
||||
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: all-artifacts
|
||||
path: |
|
||||
dist/*.zip
|
||||
dist/*.crx
|
||||
|
||||
- name: Archive extension
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: scriptcat
|
||||
path: |
|
||||
dist/ext/*
|
Reference in New Issue
Block a user