Require secrets to be set to run Pages deployment #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |