Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 31 additions & 10 deletions .github/workflows/generate-swagger.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Generate Swagger
name: Generate OpenAPI Specs

on:
push:
Expand All @@ -17,7 +17,7 @@ on:
env:
OTP_VERSION: '27.3.4.6'
ELIXIR_VERSION: '1.19.4'
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1

jobs:
matrix-builder:
Expand Down Expand Up @@ -124,9 +124,18 @@ jobs:

- name: mix openapi.spec.yaml
run: |
mix openapi.spec.yaml --spec BlockScoutWeb.ApiSpec openapi.${{ matrix.chain-type }}.yaml --start-app=false
mix openapi.spec.yaml --spec BlockScoutWeb.Specs.Public openapi.${{ matrix.chain-type }}.yaml --start-app=false
env:
CHAIN_TYPE: ${{ matrix.chain-type != 'default' && matrix.chain-type || '' }}
MUD_INDEXER_ENABLED: false

- name: Generate MUD-enabled spec for Optimism
if: matrix.chain-type == 'optimism'
run: |
mix openapi.spec.yaml --spec BlockScoutWeb.Specs.Public openapi.mud.yaml --start-app=false
env:
CHAIN_TYPE: optimism
MUD_INDEXER_ENABLED: true

- name: Upload OpenAPI spec
uses: actions/upload-artifact@v4
Expand All @@ -135,6 +144,14 @@ jobs:
path: openapi.${{ matrix.chain-type }}.yaml
retention-days: 1

- name: Upload MUD-enabled spec
if: matrix.chain-type == 'optimism'
uses: actions/upload-artifact@v4
with:
name: openapi-spec-mud
path: openapi.mud.yaml
retention-days: 1

push-specs:
needs:
- generate-swagger
Expand Down Expand Up @@ -169,14 +186,18 @@ jobs:

for SPEC_FILE in temp-specs/*; do
if [ -f "$SPEC_FILE" ]; then
# Extract chain type from filename
CHAIN_TYPE=$(echo $SPEC_FILE | cut -d'.' -f2)

# Create directory
mkdir -p "api-specs/blockscout/${VERSION}/${CHAIN_TYPE}"
FILENAME=$(basename "$SPEC_FILE")

# Copy spec files
cp "$SPEC_FILE" "api-specs/blockscout/${VERSION}/${CHAIN_TYPE}/swagger.yaml"
# Handle MUD spec specially
if [ "$FILENAME" = "openapi.mud.yaml" ]; then
mkdir -p "api-specs/blockscout/${VERSION}/mud"
cp "$SPEC_FILE" "api-specs/blockscout/${VERSION}/mud/swagger.yaml"
else
# Extract chain type from filename (openapi.CHAINTYPE.yaml)
CHAIN_TYPE=$(echo "$FILENAME" | sed 's/openapi\.\(.*\)\.yaml/\1/')
mkdir -p "api-specs/blockscout/${VERSION}/${CHAIN_TYPE}"
cp "$SPEC_FILE" "api-specs/blockscout/${VERSION}/${CHAIN_TYPE}/swagger.yaml"
fi
fi
done

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release-arbitrum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
steps:
- uses: actions/checkout@v5
- name: Setup repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release-celo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
API_GRAPHQL_MAX_COMPLEXITY: 10400
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release-eth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
steps:
- uses: actions/checkout@v5
- name: Setup repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release-filecoin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
steps:
- uses: actions/checkout@v5
- name: Setup repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release-fuse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
steps:
- uses: actions/checkout@v5
- name: Setup repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release-gnosis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
steps:
- uses: actions/checkout@v5
- name: Setup repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release-optimism.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
steps:
- uses: actions/checkout@v5
- name: Setup repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release-polygon-zkevm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
steps:
- uses: actions/checkout@v5
- name: Setup repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release-rootstock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
steps:
- uses: actions/checkout@v5
- name: Setup repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release-scroll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
steps:
- uses: actions/checkout@v5
- name: Setup repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release-zilliqa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
steps:
- uses: actions/checkout@v5
- name: Setup repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release-zksync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
steps:
- uses: actions/checkout@v5
- name: Setup repo
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
<<<<<<< HEAD
RELEASE_VERSION: 10.0.0
=======
RELEASE_VERSION: 9.3.5
>>>>>>> v9.3.5
RELEASE_VERSION: 10.0.1
steps:
- uses: actions/checkout@v5
- name: Setup repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-custom-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
steps:
- uses: actions/checkout@v5
- name: Setup repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-every-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
env:
OTP_VERSION: '27.3.4.6'
ELIXIR_VERSION: '1.19.4'
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-for-arbitrum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: arbitrum
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-for-celo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: optimism-celo
API_GRAPHQL_MAX_COMPLEXITY: 10400
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-for-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: poa
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-for-eth-sepolia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: eth-sepolia
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-for-eth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: ethereum
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-for-filecoin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: filecoin
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-for-fuse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: fuse
steps:
- uses: actions/checkout@v5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: xdai
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-for-l2-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: optimism-l2-advanced
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-for-lukso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: lukso
steps:
- uses: actions/checkout@v5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: optimism
steps:
- uses: actions/checkout@v5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: optimism
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-for-optimism.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: optimism
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-for-rootstock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: rsk
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-for-scroll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: scroll
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-for-zetachain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: zetachain
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-for-zilliqa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: zilliqa
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-for-zkevm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: zkevm
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-for-zksync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
DOCKER_CHAIN_NAME: zksync
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image-old-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Push Docker image to GitHub Container Registry
runs-on: build
env:
RELEASE_VERSION: 9.3.5
RELEASE_VERSION: 10.0.1
steps:
- uses: actions/checkout@v5
- name: Setup repo
Expand Down
Loading
Loading