diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3b07134f..927979f3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,7 +23,9 @@ jobs: # cache: npm - name: Set Variables Data - run: echo "$REACT_APP_FOLLOWERS_ACCESS_KEY" + run: | + touch .env + echo REACT_APP_FOLLOWERS_ACCESS_KEY: ${{ secrets.REACT_APP_FOLLOWERS_ACCESS_KEY }} >> .env env: REACT_APP_FOLLOWERS_ACCESS_KEY: ${{ secrets.REACT_APP_FOLLOWERS_ACCESS_KEY }} diff --git a/documentation/src/context/CommunityStats/index.tsx b/documentation/src/context/CommunityStats/index.tsx index 9756671b..d72c6a8c 100644 --- a/documentation/src/context/CommunityStats/index.tsx +++ b/documentation/src/context/CommunityStats/index.tsx @@ -25,7 +25,7 @@ export const CommunityStatsContext = createContext< ICommunityStatsContext | undefined >(undefined); -const ACCESS_TOKEN = "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"; +const ACCESS_TOKEN = process.env.REACT_APP_FOLLOWERS_ACCESS_KEY; export const CommunityStatsProvider: FC = ({ children }) => { const [loading, setLoading] = useState(true);