mirror of
https://github.com/dbgate/dbgate
synced 2024-11-21 15:28:20 +00:00
add gist upload secret
This commit is contained in:
parent
0adf730f0b
commit
cc3fd605de
5
.github/workflows/build-app-beta.yaml
vendored
5
.github/workflows/build-app-beta.yaml
vendored
@ -39,6 +39,11 @@ jobs:
|
|||||||
- name: setCurrentVersion
|
- name: setCurrentVersion
|
||||||
run: |
|
run: |
|
||||||
yarn setCurrentVersion
|
yarn setCurrentVersion
|
||||||
|
- name: printSecrets
|
||||||
|
run: |
|
||||||
|
yarn printSecrets
|
||||||
|
env:
|
||||||
|
GIST_UPLOAD_SECRET : ${{secrets.GIST_UPLOAD_SECRET}}
|
||||||
- name: fillNativeModulesElectron
|
- name: fillNativeModulesElectron
|
||||||
run: |
|
run: |
|
||||||
yarn fillNativeModulesElectron
|
yarn fillNativeModulesElectron
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
"build:app:local": "yarn plugins:copydist && cd app && yarn build:local",
|
"build:app:local": "yarn plugins:copydist && cd app && yarn build:local",
|
||||||
"start:app:local": "cd app && yarn start:local",
|
"start:app:local": "cd app && yarn start:local",
|
||||||
"setCurrentVersion": "node setCurrentVersion",
|
"setCurrentVersion": "node setCurrentVersion",
|
||||||
|
"printSecrets": "node printSecrets",
|
||||||
"generatePadFile": "node generatePadFile",
|
"generatePadFile": "node generatePadFile",
|
||||||
"adjustPackageJson": "node adjustPackageJson",
|
"adjustPackageJson": "node adjustPackageJson",
|
||||||
"fillNativeModules": "node fillNativeModules",
|
"fillNativeModules": "node fillNativeModules",
|
||||||
|
7
printSecrets.js
Normal file
7
printSecrets.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
const fs = require('fs');
|
||||||
|
|
||||||
|
const text = `
|
||||||
|
module.exports = '${process.env.GIST_UPLOAD_SECRET}';
|
||||||
|
`;
|
||||||
|
|
||||||
|
fs.writeFileSync('packages/api/src/gistSecret.js', text);
|
Loading…
Reference in New Issue
Block a user