mirror of
https://github.com/dbgate/dbgate
synced 2024-11-21 07:26:43 +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
|
||||
run: |
|
||||
yarn setCurrentVersion
|
||||
- name: printSecrets
|
||||
run: |
|
||||
yarn printSecrets
|
||||
env:
|
||||
GIST_UPLOAD_SECRET : ${{secrets.GIST_UPLOAD_SECRET}}
|
||||
- name: fillNativeModulesElectron
|
||||
run: |
|
||||
yarn fillNativeModulesElectron
|
||||
|
@ -39,6 +39,7 @@
|
||||
"build:app:local": "yarn plugins:copydist && cd app && yarn build:local",
|
||||
"start:app:local": "cd app && yarn start:local",
|
||||
"setCurrentVersion": "node setCurrentVersion",
|
||||
"printSecrets": "node printSecrets",
|
||||
"generatePadFile": "node generatePadFile",
|
||||
"adjustPackageJson": "node adjustPackageJson",
|
||||
"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