Skip to content

Commit

Permalink
load secrets from op and added new env
Browse files Browse the repository at this point in the history
  • Loading branch information
jjavieralv committed Sep 4, 2024
1 parent f6244f8 commit ca55277
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/deploy_fleek.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ jobs:
if: github.ref == 'refs/heads/master'
environment: MAINNET
steps:
- name: Load secrets from OP
uses: 1password/load-secrets-action@v2
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN_PRODUCTION }}
THEGRAPH_COURT: op://apikeys_prod/thegraph_courtv2/credential
- uses: actions/checkout@v3
- name: Install node
uses: actions/setup-node@v1
Expand All @@ -27,6 +34,7 @@ jobs:
REACT_APP_DEPLOY_ENVIRONMENT: production
REACT_APP_CHAIN_ID: 1
REACT_APP_ETHERSCAN_ENDPOINT: ${{ secrets.REACT_APP_ETHERSCAN_ENDPOINT }}
REACT_APP_SUBGRAPH_API_KEY: "$THEGRAPH_COURT"
run: yarn build
- name: Activate mainnet's fleek
run: mv .github/fleek/mainnet.json .fleek.json
Expand Down Expand Up @@ -69,6 +77,14 @@ jobs:
subgraph_name: "staging"
environment: ${{ matrix.environment }}
steps:
- name: Load secrets from OP
uses: 1password/load-secrets-action@v2
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN_NONPROD }}
THEGRAPH_COURT: op://apikeys_nonprod/thegraph_courtv2/credential

- uses: actions/checkout@v3
- name: Install node
uses: actions/setup-node@v1
Expand All @@ -86,6 +102,7 @@ jobs:
REACT_APP_CHAIN_ID: 4
REACT_APP_ETHERSCAN_ENDPOINT: ${{ secrets.REACT_APP_ETHERSCAN_ENDPOINT }}
REACT_APP_SUBGRAPH_NAME: ${{ matrix.subgraph_name }}
REACT_APP_SUBGRAPH_API_KEY: "$THEGRAPH_COURT"
run: yarn build
- name: Activate fleek
env:
Expand Down

0 comments on commit ca55277

Please sign in to comment.