test upload

This commit is contained in:
buqiyuan 2022-07-07 15:58:43 +08:00
parent 40c5b40943
commit 60340c8e18

View File

@ -24,10 +24,23 @@ jobs:
with:
node-version: '16'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install
run: yarn install --frozen-lockfile
- name: Release for Linux
if: matrix.os == 'ubuntu-latest'
run: |
npm install --global qiniu
echo "${{ secrets.QINIU_ENV_JS }}" > qiniu_env.js
node upload.js
env: