Skip to content

Commit

Permalink
enable workflow to allow deploying to a single network
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparkallas committed Aug 13, 2024
1 parent 1cb36a2 commit 26e03e5
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/aw-subgraph-ci-goldsky.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@ name: Deploy WrapScheduler Subgraphs (Goldsky)

on:
workflow_dispatch:
inputs:
network:
description: 'Network to deploy (select "all" for all networks)'
required: true
type: choice
options:
- all
- avalanche-c
- arbitrum-one
- bsc-mainnet
- eth-mainnet
- xdai-mainnet
- optimism-mainnet
- polygon-mainnet
- optimism-sepolia
- base-mainnet
default: 'all'
push:
branches:
- "release-v1/*"
Expand All @@ -17,18 +34,7 @@ jobs:
strategy:
fail-fast: false
matrix:
networks:
[
"avalanche-c",
"arbitrum-one",
"bsc-mainnet",
"eth-mainnet",
"xdai-mainnet",
"optimism-mainnet",
"polygon-mainnet",
"optimism-sepolia",
"base-mainnet"
]
networks: ${{ github.event.inputs.network == 'all' && fromJson('["avalanche-c", "arbitrum-one", "bsc-mainnet", "eth-mainnet", "xdai-mainnet", "optimism-mainnet", "polygon-mainnet", "optimism-sepolia", "base-mainnet"]') || fromJson(format('["{0}"]', github.event.inputs.network)) }}
steps:
- uses: actions/checkout@v4
- name: Install node
Expand Down Expand Up @@ -71,4 +77,4 @@ jobs:
fi
- name: Goldsky Tag
if: steps.check-sync.outputs.sync == 'true'
run: pnpm exec goldsky subgraph tag create ${{format('auto-wrap-v1-{0}/{1}', matrix.networks, steps.get-version.outputs.result) }} --tag prod
run: pnpm exec goldsky subgraph tag create ${{format('auto-wrap-v1-{0}/{1}', matrix.networks, steps.get-version.outputs.result) }} --tag prod

0 comments on commit 26e03e5

Please sign in to comment.