Skip to content

Commit

Permalink
Set env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Akash Singh committed Apr 2, 2024
1 parent 37c41c9 commit 5076100
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,22 @@ jobs:
node-version: 18.x
# cache: npm

- name: Set Variables Data
env:
REACT_APP_FOLLOWERS_ACCESS_KEY: ${{ secrets.REACT_APP_FOLLOWERS_ACCESS_KEY }}
run: |
echo ${{ secrets.REACT_APP_FOLLOWERS_ACCESS_KEY }}
# - name: Set Variables Data
# env:
# REACT_APP_FOLLOWERS_ACCESS_KEY: ${{ secrets.REACT_APP_FOLLOWERS_ACCESS_KEY }}
# run: |
# echo ${{ secrets.REACT_APP_FOLLOWERS_ACCESS_KEY }}

- name: Install dependencies
run: |
npm ci
# - name: Install dependencies
# run: |
# npm ci

- name: Install dependencies & Build website
- name: Set Variables Data, Install dependencies & Build website
run: |
npm ci
cd documentation
npm ci
REACT_APP_FOLLOWERS_ACCESS_KEY: ${{ secrets.REACT_APP_FOLLOWERS_ACCESS_KEY }}
npm run build
- name: Deploy to GitHub Pages
Expand Down
2 changes: 1 addition & 1 deletion documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev:lean": "DISABLE_DOCGEN=true DISABLE_VERSIONING=true DISABLE_EXAMPLES=true DISABLE_CHECKLISTS=true npm run start",
"dev:docs": "DISABLE_BLOG=true npm run dev:lean",
"dev:blog": "DISABLE_DOCS=true LIVE_PREVIEW_URL=https://next.live-previews.prepverse.github.io/preview npm run dev:lean",
"build": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" docusaurus build",
"build": "NODE_OPTIONS=\"--max-old-space-size=8192\" docusaurus build",
"build:plugins": "sucrase ./plugins -d ./plugins --transforms typescript,imports && npx prettier --write ./plugins",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
Expand Down

0 comments on commit 5076100

Please sign in to comment.