add gist upload secret

This commit is contained in:
Jan Prochazka 2024-05-24 14:18:57 +02:00
parent 0adf730f0b
commit cc3fd605de
3 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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
View 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);