Explorar el Código

Fix CI 3

master
Palash Bansal hace 1 año
padre
commit
41b0346aaf
No account linked to committer's email address
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1
    1
      .github/workflows/deploy-pages.yml
  2. 1
    1
      scripts/generate-example-env.mjs

+ 1
- 1
.github/workflows/deploy-pages.yml Ver fichero

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

+ 1
- 1
scripts/generate-example-env.mjs Ver fichero

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

Cargando…
Cancelar
Guardar