feat: add log

This commit is contained in:
夜鹰 2022-07-07 16:08:31 +08:00
parent 88ac25077e
commit 1b1a7c1bfc
2 changed files with 6 additions and 6 deletions

View File

@ -43,6 +43,7 @@ jobs:
run: |
echo "${{ secrets.QINIU_ENV_JS }}" > qiniu_env.js
yarn release
dir ./release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
@ -80,6 +81,7 @@ jobs:
echo "${{ secrets.QINIU_ENV_JS }}" > qiniu_env.js
yarn release:m1
yarn release
ls ./release
# clean up keychain and provisioning profile
security delete-keychain $RUNNER_TEMP/app-signing.keychain-db

View File

@ -2,8 +2,6 @@ const qiniu = require('qiniu');
const { AK, SK, bucket } = require('./qiniu_env.js');
const package = require('./package.json');
console.log('AK, SK, bucket', AK, SK, bucket);
qiniu.conf.ACCESS_KEY = AK;
qiniu.conf.SECRET_KEY = SK;
@ -43,12 +41,12 @@ const cpFile = (fromFile, toFile) =>
});
const version = package.version;
// const fileList = ['release/eoapi-Setup-?.exe', 'release/eoapi-?.dmg', 'release/eoapi-?-arm64.dmg'].map((it) =>
// it.replace(/\?/, `${version}`)
// );
const fileList = ['releass/eoapi-Setup-?.png', 'releass/eoapi-?.png', 'releass/eoapi-?-arm64.png'].map((it) =>
const fileList = ['release/eoapi-Setup-?.exe', 'release/eoapi-?.dmg', 'release/eoapi-?-arm64.dmg'].map((it) =>
it.replace(/\?/, `${version}`)
);
// const fileList = ['releass/eoapi-Setup-?.png', 'releass/eoapi-?.png', 'releass/eoapi-?-arm64.png'].map((it) =>
// it.replace(/\?/, `${version}`)
// );
const app = async () => {
const uploadResult = await Promise.all(