Skip to content

Commit

Permalink
update build action
Browse files Browse the repository at this point in the history
  • Loading branch information
CodFrm committed Aug 29, 2021
1 parent 93519ef commit 486f9f4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: build
on:
push:
branches:
- master
- develop
- main
- develop/*
pull_request:
branches:
- master
- develop
- main
- develop/*

jobs:
build-deploy:
Expand All @@ -31,7 +31,11 @@ jobs:
${{ runner.OS }}-
- name: Package with Node
env:
CHROME_PEM: ${{ secrets.CHROME_PEM }}
run: |
echo "$CHROME_PEM" > ./build/scriptcat.pem
chmod 600 ./build/scriptcat.pem
npm ci
npm test
npm run pack
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/packageRelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ jobs:
${{ runner.OS }}-
- name: Package with Node
env:
CHROME_PEM: ${{ secrets.CHROME_PEM }}
run: |
echo "$CHROME_PEM" > ./build/cxmooc-tools.pem
chmod 600 ./build/cxmooc-tools.pem
echo "$CHROME_PEM" > ./build/scriptcat.pem
chmod 600 ./build/scriptcat.pem
npm ci
npm test
npm run pack
Expand Down

0 comments on commit 486f9f4

Please sign in to comment.