Skip to content

Require secrets to be set to run Pages deployment #19

Require secrets to be set to run Pages deployment

Require secrets to be set to run Pages deployment #19

on: [push]
jobs:
check-secrets:
if: github.repository == 'otterscan/otterscan'
runs-on: ubuntu-latest
steps:
- name: Check if repository name supports this workflow
- run: echo
deploy-mainnet:
uses: ./.github/workflows/pages-deployment.yaml
if: github.repository == 'otterscan/otterscan'
needs: [check-secrets]
secrets:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ secrets.CLOUDFLARE_INTEG_MAINNET_PROJECT }}
viteConfigJson: ${{ secrets.CLOUDFLARE_INTEG_MAINNET_SETTINGS }}
deploy-gnosis:
uses: ./.github/workflows/pages-deployment.yaml
if: github.repository == 'otterscan/otterscan'
needs: [check-secrets]
secrets:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ secrets.CLOUDFLARE_INTEG_GNOSIS_PROJECT }}
viteConfigJson: ${{ secrets.CLOUDFLARE_INTEG_GNOSIS_SETTINGS }}
deploy-op-mainnet:
uses: ./.github/workflows/pages-deployment.yaml
if: github.repository == 'otterscan/otterscan'
needs: [check-secrets]
secrets:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ secrets.CLOUDFLARE_INTEG_OP_MAINNET_PROJECT }}
viteConfigJson: ${{ secrets.CLOUDFLARE_INTEG_OP_MAINNET_SETTINGS }}
deploy-e3-sepolia:
uses: ./.github/workflows/pages-deployment.yaml
if: github.repository == 'otterscan/otterscan'
needs: [check-secrets]
secrets:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ secrets.CLOUDFLARE_INTEG_E3_SEPOLIA_PROJECT }}
viteConfigJson: ${{ secrets.CLOUDFLARE_INTEG_E3_SEPOLIA_SETTINGS }}