diff --git a/.github/workflows/deploy-develop.yml b/.github/workflows/deploy-develop.yml index 7ddd98f139d..bebf7b7777a 100644 --- a/.github/workflows/deploy-develop.yml +++ b/.github/workflows/deploy-develop.yml @@ -27,7 +27,7 @@ jobs: cache: "npm" cache-dependency-path: "package-lock.json" env: - NODE_ENV: ${{ secrets.NODE_ENV }} + NODE_ENV: ${{ vars.NODE_ENV }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Install dependencies @@ -35,7 +35,7 @@ jobs: npm run presetup npm ci --ignore-scripts env: - NODE_ENV: ${{ secrets.NODE_ENV }} + NODE_ENV: ${{ vars.NODE_ENV }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Run NPM install scripts @@ -81,17 +81,18 @@ jobs: run: npm run build env: APP_ENV: staging - NODE_ENV: ${{ secrets.NODE_ENV }} + NODE_ENV: ${{ vars.NODE_ENV }} NODE_OPTIONS: --max-old-space-size=4096 FATHOM_SITE_ID: ${{ vars.FATHOM_SITE_ID }} ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }} - ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }} + ALGOLIA_SEARCH_ONLY_KEY: ${{ vars.ALGOLIA_SEARCH_ONLY_KEY }} + ALGOLIA_APP_ID: ${{ vars.ALGOLIA_APP_ID }} ALGOLIA_INDEX_NAME: edb-docs-staging INDEX_ON_BUILD: true - name: Deploy to Netlify id: netlify-deploy - uses: nwtgck/actions-netlify@v2 + uses: nwtgck/actions-netlify@v3 with: publish-dir: "./public" production-branch: "develop" diff --git a/.github/workflows/deploy-draft.yml b/.github/workflows/deploy-draft.yml index 7870b3a3f09..0f51d0a7fb1 100644 --- a/.github/workflows/deploy-draft.yml +++ b/.github/workflows/deploy-draft.yml @@ -74,17 +74,18 @@ jobs: run: npm run build env: APP_ENV: staging - NODE_ENV: ${{ secrets.NODE_ENV }} + NODE_ENV: ${{ vars.NODE_ENV }} NODE_OPTIONS: --max-old-space-size=4096 FATHOM_SITE_ID: ${{ vars.FATHOM_SITE_ID }} ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }} - ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }} + ALGOLIA_SEARCH_ONLY_KEY: ${{ vars.ALGOLIA_SEARCH_ONLY_KEY }} + ALGOLIA_APP_ID: ${{ vars.ALGOLIA_APP_ID }} ALGOLIA_INDEX_NAME: edb-docs-staging INDEX_ON_BUILD: false - name: Deploy to Netlify id: netlify-deploy - uses: nwtgck/actions-netlify@v2 + uses: nwtgck/actions-netlify@v3 with: publish-dir: "./public" github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/deploy-main.yml b/.github/workflows/deploy-main.yml index 4da3aea1c24..d19661dd647 100644 --- a/.github/workflows/deploy-main.yml +++ b/.github/workflows/deploy-main.yml @@ -28,7 +28,7 @@ jobs: cache: "npm" cache-dependency-path: "package-lock.json" env: - NODE_ENV: ${{ secrets.NODE_ENV }} + NODE_ENV: ${{ vars.NODE_ENV }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Install dependencies @@ -36,7 +36,7 @@ jobs: npm run presetup npm ci --ignore-scripts env: - NODE_ENV: ${{ secrets.NODE_ENV }} + NODE_ENV: ${{ vars.NODE_ENV }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Run NPM install scripts @@ -69,18 +69,19 @@ jobs: run: npm run build env: APP_ENV: production - NODE_ENV: ${{ secrets.NODE_ENV }} + NODE_ENV: ${{ vars.NODE_ENV }} NODE_OPTIONS: --max-old-space-size=4096 FATHOM_SITE_ID: ${{ vars.FATHOM_SITE_ID }} ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }} - ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }} + ALGOLIA_SEARCH_ONLY_KEY: ${{ vars.ALGOLIA_SEARCH_ONLY_KEY }} + ALGOLIA_APP_ID: ${{ vars.ALGOLIA_APP_ID }} ALGOLIA_INDEX_NAME: edb-docs GTM_ID: GTM-5W8M67 INDEX_ON_BUILD: true - name: Deploy to Netlify id: netlify-deploy - uses: nwtgck/actions-netlify@v2 + uses: nwtgck/actions-netlify@v3 with: publish-dir: "./public" production-branch: "main"