| @@ -44,7 +44,7 @@ jobs: | |||
| cache-dependency-path: '**/package-lock.json' # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-data | |||
| - run: npm ci # this will also run `npm run prepare` which will build # todo use --cache .npm | |||
| env: | |||
| DOT_ENV_CONTENT: ${{ secrets.examples_dot_env }} | |||
| DOT_ENV_CONTENT: ${{ secrets.examples_dot_env }} # todo well... | |||
| - run: npm run build-site # builds to _site | |||
| - name: Upload artifact | |||
| uses: actions/upload-pages-artifact@v3 | |||
| @@ -9,7 +9,7 @@ if (fs.existsSync(envFilePath)) { | |||
| // Parse DOT_ENV_CONTENT environment variable as .env file if it exists(for ci) | |||
| if (process.env.DOT_ENV_CONTENT) { | |||
| const envConfig = dotenv.parse(process.env.TP_EX) | |||
| const envConfig = dotenv.parse(process.env.DOT_ENV_CONTENT) | |||
| for (const key in envConfig) { | |||
| process.env[key] = envConfig[key] | |||
| } | |||