Skip to content

Commit

Permalink
feat: add log
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfuboy committed Jul 7, 2022
1 parent 88ac250 commit 1b1a7c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
run: |
echo "${{ secrets.QINIU_ENV_JS }}" > qiniu_env.js
yarn release
dir ./release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

Expand Down Expand Up @@ -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
Expand Down
10 changes: 4 additions & 6 deletions upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 1b1a7c1

Please sign in to comment.