Skip to content

Commit

Permalink
fix: qiniu_env.js output path
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Mar 6, 2023
1 parent 15dbef4 commit 5249607
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Install
run: |
yarn install --frozen-lockfile
echo "${{ secrets.QINIU_ENV_JS }}" > qiniu_env.js
echo "${{ secrets.QINIU_ENV_JS }}" > scripts/qiniu_env.js
- name: Release for MacOS
if: matrix.os == 'macos-12'
Expand Down
2 changes: 1 addition & 1 deletion scripts/deployWindows.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ conn
...Array.from({ length: 5 }).map(_ => 'git pull'),
'nvm install 16.19.1',
'nvm use 16.19.1',
`echo ${process.env.QINIU_ENV_JS} > qiniu_env.js`,
`echo ${process.env.QINIU_ENV_JS} > ./scripts/qiniu_env.js`,
'yarn install',
'yarn release',
'nvm use 12.22.10',
Expand Down
1 change: 0 additions & 1 deletion scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const cpFile = (fromFile, toFile) =>
const version = package.version;
const fileList = [
'release/Postcat-Setup-?.exe',
'release/Postcat Setup ?.exe',
'release/Postcat Setup ?.exe.blockmap',
'release/Postcat-?-arm64.dmg',
'release/Postcat-?-arm64-mac.zip',
Expand Down
3 changes: 1 addition & 2 deletions scripts/upload.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const qiniu = require('qiniu');
const { promises } = require('fs');
const { AK, SK, bucket } = require('../qiniu_env.js');
const { AK, SK, bucket } = require('./qiniu_env.js');
const package = require('./package.json');

qiniu.conf.ACCESS_KEY = AK;
Expand Down Expand Up @@ -47,7 +47,6 @@ const cpFile = (fromFile, toFile) =>
const version = package.version;
const fileList = [
'release/Postcat-Setup-?.exe',
'release/Postcat Setup ?.exe',
'release/Postcat Setup ?.exe.blockmap',
'release/Postcat-?-arm64.dmg',
'release/Postcat-?-arm64-mac.zip',
Expand Down

0 comments on commit 5249607

Please sign in to comment.