diff --git a/.github/workflows/build-app-beta.yaml b/.github/workflows/build-app-beta.yaml index a1e7b7ab..7be276ed 100644 --- a/.github/workflows/build-app-beta.yaml +++ b/.github/workflows/build-app-beta.yaml @@ -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 diff --git a/package.json b/package.json index 47cd83fd..03f2bb37 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/printSecrets.js b/printSecrets.js new file mode 100644 index 00000000..5acc6efb --- /dev/null +++ b/printSecrets.js @@ -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);