Merge branch 'dev'

pull/459/head
lyswhut 2021-03-10 01:18:49 +08:00
commit 1d90719053
1 changed files with 16 additions and 13 deletions

View File

@ -14,10 +14,10 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: '12' node-version: '12.x'
- name: Cache file - name: Cache file
- uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: |
node_modules node_modules
@ -27,7 +27,8 @@ jobs:
key: ${{ runner.os }}-build-caches-${{ hashFiles('**/package-lock.json') }} key: ${{ runner.os }}-build-caches-${{ hashFiles('**/package-lock.json') }}
restore-keys: | restore-keys: |
${{ runner.os }}-build- ${{ runner.os }}-build-
- run: npm install && npm run publish:gh - name: Build & Release
run: npm install && npm run publish:gh
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -39,10 +40,10 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: '12' node-version: '12.x'
- name: Cache file - name: Cache file
- uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: |
node_modules node_modules
@ -52,7 +53,8 @@ jobs:
key: ${{ runner.os }}-build-caches-${{ hashFiles('**/package-lock.json') }} key: ${{ runner.os }}-build-caches-${{ hashFiles('**/package-lock.json') }}
restore-keys: | restore-keys: |
${{ runner.os }}-build- ${{ runner.os }}-build-
- run: npm install && npm run publish:gh:mac - name: Build & Release
run: npm install && npm run publish:gh:mac
env: env:
ELECTRON_CACHE: $HOME/.cache/electron ELECTRON_CACHE: $HOME/.cache/electron
ELECTRON_BUILDERCACHE: $HOME/.cache/electron-builder ELECTRON_BUILDERCACHE: $HOME/.cache/electron-builder
@ -63,17 +65,17 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install package - name: Install package
- run: sudo apt-get install -y rpm bsdtar run: sudo apt-get install -y rpm bsdtar
- name: Check out git repository - name: Check out git repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: '12' node-version: '12.x'
- name: Cache file - name: Cache file
- uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: |
node_modules node_modules
@ -83,6 +85,7 @@ jobs:
key: ${{ runner.os }}-build-caches-${{ hashFiles('**/package-lock.json') }} key: ${{ runner.os }}-build-caches-${{ hashFiles('**/package-lock.json') }}
restore-keys: | restore-keys: |
${{ runner.os }}-build- ${{ runner.os }}-build-
- run: npm install && npm run publish:gh:linux - name: Build & Release
run: npm install && npm run publish:gh:linux
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}