Skip to content

Commit

Permalink
add nix to handler.deploy-to-testnets.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdavinchee committed Nov 8, 2023
1 parent efe1b85 commit 708d5bb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/handler.deploy-to-testnets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
DEFAULT_MNEMONIC: ${{ secrets.BUILD_AGENT_MNEMONIC }}
PROVIDER_URL_TEMPLATE: ${{ secrets.PROVIDER_URL_TEMPLATE }}

defaults:
run:
shell: nix develop -c bash -xe {0}

strategy:
fail-fast: false
matrix:
Expand All @@ -39,12 +43,10 @@ jobs:
if: ${{ github.event.inputs.only_network != '' && github.event.inputs.only_network != matrix.network }}
run: echo "DO_SKIP=1" >> "$GITHUB_ENV"

- name: Use Node.js 18.x
- uses: cachix/install-nix-action@v19
if: env.DO_SKIP != 1
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "yarn"
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build
if: env.DO_SKIP != 1
Expand Down

0 comments on commit 708d5bb

Please sign in to comment.