修正语法错误

pull/459/head
lyswhut 2021-03-10 01:15:30 +08:00
parent a484f66e69
commit 127d279266
1 changed files with 10 additions and 7 deletions

View File

@ -17,7 +17,7 @@ jobs:
with: with:
node-version: '12.x' 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 }}
@ -42,7 +43,7 @@ jobs:
with: with:
node-version: '12.x' 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,7 +65,7 @@ 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
@ -73,7 +75,7 @@ jobs:
with: with:
node-version: '12.x' 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 }}