Skip to content

Commit

Permalink
Added enviroment vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Campos committed Mar 27, 2024
1 parent f6b5464 commit d1f5271
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ jobs:
build-test:
name: "Build and Test"
runs-on: ubuntu-latest
environment: testnet #change to mainnet before production

strategy:
matrix:
node-version: ['20.x']

env:
RPC_URL: ${{ secrets.RPC_URL }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}

steps:
- uses: actions/checkout@v4

Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/push_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,33 @@ jobs:
exports-abi:
name: "Export ABI's"
runs-on: ubuntu-latest
environment: testnet #change to mainnet before production

strategy:
matrix:
node-version: ['20.x']

env:
RPC_URL: ${{ secrets.RPC_URL }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}


steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install Yarn
run: npm install --global yarn

- name: Install Dependencies
run: yarn install

- name: Compile
run: yarn run compile

- name: Extract and publish ABIs
run: |
Expand Down

0 comments on commit d1f5271

Please sign in to comment.