diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000000000..615cc0c842f2d2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,639 @@ +name: Build + +on: + - push + +jobs: + changes: + name: "Check for docs changes" + runs-on: ubuntu-latest + outputs: + onedot: ${{ steps.filter.outputs.onedot }} + access: ${{ steps.filter.outputs.access }} + analytics: ${{ steps.filter.outputs.analytics }} + argo-tunnel: ${{ steps.filter.outputs.argo-tunnel }} + byoip: ${{ steps.filter.outputs.byoip }} + distributed-web: ${{ steps.filter.outputs.distributed-web }} + docs-engine: ${{ steps.filter.outputs.docs-engine }} + firewall: ${{ steps.filter.outputs.firewall }} + gateway: ${{ steps.filter.outputs.gateway }} + http3: ${{ steps.filter.outputs.http3 }} + images: ${{ steps.filter.outputs.images }} + internet: ${{ steps.filter.outputs.internet }} + load-balancing: ${{ steps.filter.outputs.load-balancing }} + logs: ${{ steps.filter.outputs.logs }} + magic-transit: ${{ steps.filter.outputs.magic-transit }} + mobile-sdk: ${{ steps.filter.outputs.mobile-sdk }} + network-interconnect: ${{ steps.filter.outputs.network-interconnect }} + randomness-beacon: ${{ steps.filter.outputs.randomness-beacon }} + registrar: ${{ steps.filter.outputs.registrar }} + spectrum: ${{ steps.filter.outputs.spectrum }} + ssl: ${{ steps.filter.outputs.ssl }} + stream: ${{ steps.filter.outputs.stream }} + tenant: ${{ steps.filter.outputs.tenant }} + terraform: ${{ steps.filter.outputs.terraform }} + time-services: ${{ steps.filter.outputs.time-services }} + waf: ${{ steps.filter.outputs.waf }} + workers: ${{ steps.filter.outputs.workers }} + steps: + - uses: actions/checkout@v2 + - uses: dorny/paths-filter@v2.4.2 + id: filter + with: + filters: | + onedot: + - 'products/1.1.1.1/**' + access: + - 'products/access/**' + analytics: + - 'products/analytics/**' + argo-tunnel: + - 'products/argo-tunnel/**' + byoip: + - 'products/byoip/**' + distributed-web: + - 'products/distributed-web/**' + docs-engine: + - 'products/docs-engine/**' + firewall: + - 'products/firewall/**' + gateway: + - 'products/gateway/**' + http3: + - 'products/http3/**' + images: + - 'products/images/**' + internet: + - 'products/internet/**' + load-balancing: + - 'products/load-balancing/**' + logs: + - 'products/logs/**' + magic-transit: + - 'products/magic-transit/**' + mobile-sdk: + - 'products/mobile-sdk/**' + network-interconnect: + - 'products/network-interconnect/**' + randomness-beacon: + - 'products/randomness-beacon/**' + registrar: + - 'products/registrar/**' + spectrum: + - 'products/spectrum/**' + ssl: + - 'products/ssl/**' + stream: + - 'products/stream/**' + tenant: + - 'products/tenant/**' + terraform: + - 'products/terraform/**' + time-services: + - 'products/time-services/**' + waf: + - 'products/waf/**' + workers: + - 'products/workers/**' + + build-1-1-1-1: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.onedot == 'true' }} + defaults: + run: + shell: bash + working-directory: products/1.1.1.1 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-access: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.access == 'true' }} + defaults: + run: + shell: bash + working-directory: products/access + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-analytics: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.analytics == 'true' }} + defaults: + run: + shell: bash + working-directory: products/analytics + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-argo-tunnel: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.argo-tunnel == 'true' }} + defaults: + run: + shell: bash + working-directory: products/argo-tunnel + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-byoip: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.byoip == 'true' }} + defaults: + run: + shell: bash + working-directory: products/byoip + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-distributed-web: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.distributed-web == 'true' }} + defaults: + run: + shell: bash + working-directory: products/distributed-web + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-docs-engine: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.docs-engine == 'true' }} + defaults: + run: + shell: bash + working-directory: products/docs-engine + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + + build-firewall: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.firewall == 'true' }} + defaults: + run: + shell: bash + working-directory: products/firewall + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-gateway: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.gateway == 'true' }} + defaults: + run: + shell: bash + working-directory: products/gateway + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-http3: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.http3 == 'true' }} + defaults: + run: + shell: bash + working-directory: products/http3 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-images: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.images == 'true' }} + defaults: + run: + shell: bash + working-directory: products/images + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + + build-internet: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.internet == 'true' }} + defaults: + run: + shell: bash + working-directory: products/internet + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-load-balancing: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.load-balancing == 'true' }} + defaults: + run: + shell: bash + working-directory: products/load-balancing + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-logs: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.logs == 'true' }} + defaults: + run: + shell: bash + working-directory: products/logs + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-magic-transit: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.magic-transit == 'true' }} + defaults: + run: + shell: bash + working-directory: products/magic-transit + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-mobile-sdk: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.mobile-sdk == 'true' }} + defaults: + run: + shell: bash + working-directory: products/mobile-sdk + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-network-interconnect: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.network-interconnect == 'true' }} + defaults: + run: + shell: bash + working-directory: products/network-interconnect + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-randomness-beacon: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.randomness-beacon == 'true' }} + defaults: + run: + shell: bash + working-directory: products/randomness-beacon + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-registrar: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.registrar == 'true' }} + defaults: + run: + shell: bash + working-directory: products/registrar + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-spectrum: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.spectrum == 'true' }} + defaults: + run: + shell: bash + working-directory: products/spectrum + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-ssl: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.ssl == 'true' }} + defaults: + run: + shell: bash + working-directory: products/ssl + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-stream: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.stream == 'true' }} + defaults: + run: + shell: bash + working-directory: products/stream + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-tenant: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.tenant == 'true' }} + defaults: + run: + shell: bash + working-directory: products/tenant + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + + build-terraform: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.terraform == 'true' }} + defaults: + run: + shell: bash + working-directory: products/terraform + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + + build-time-services: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.time-services == 'true' }} + defaults: + run: + shell: bash + working-directory: products/time-services + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + - run: wrangler publish + env: + CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }} + + build-waf: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.waf == 'true' }} + defaults: + run: + shell: bash + working-directory: products/waf + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build + npm install -g @cloudflare/wrangler + - run: wrangler publish + env: + CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }} + + build-workers: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.workers == 'true' }} + defaults: + run: + shell: bash + working-directory: products/workers + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14.2.0 + - run: | + npm install + mkdir .docs + npm run ghactionsbootstrap + npm run build diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fa5db782b2b07a..2f41fd9b8ae8df 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,14 +6,108 @@ on: - master jobs: + changes: + name: "Check for docs changes" + runs-on: ubuntu-latest + outputs: + onedot: ${{ steps.filter.outputs.onedot }} + access: ${{ steps.filter.outputs.access }} + analytics: ${{ steps.filter.outputs.analytics }} + argo-tunnel: ${{ steps.filter.outputs.argo-tunnel }} + byoip: ${{ steps.filter.outputs.byoip }} + distributed-web: ${{ steps.filter.outputs.distributed-web }} + docs-engine: ${{ steps.filter.outputs.docs-engine }} + firewall: ${{ steps.filter.outputs.firewall }} + gateway: ${{ steps.filter.outputs.gateway }} + http3: ${{ steps.filter.outputs.http3 }} + images: ${{ steps.filter.outputs.images }} + internet: ${{ steps.filter.outputs.internet }} + load-balancing: ${{ steps.filter.outputs.load-balancing }} + logs: ${{ steps.filter.outputs.logs }} + magic-transit: ${{ steps.filter.outputs.magic-transit }} + mobile-sdk: ${{ steps.filter.outputs.mobile-sdk }} + network-interconnect: ${{ steps.filter.outputs.network-interconnect }} + randomness-beacon: ${{ steps.filter.outputs.randomness-beacon }} + registrar: ${{ steps.filter.outputs.registrar }} + spectrum: ${{ steps.filter.outputs.spectrum }} + ssl: ${{ steps.filter.outputs.ssl }} + stream: ${{ steps.filter.outputs.stream }} + tenant: ${{ steps.filter.outputs.tenant }} + terraform: ${{ steps.filter.outputs.terraform }} + time-services: ${{ steps.filter.outputs.time-services }} + waf: ${{ steps.filter.outputs.waf }} + workers: ${{ steps.filter.outputs.workers }} + steps: + - uses: actions/checkout@v2 + - uses: dorny/paths-filter@v2.4.2 + id: filter + with: + filters: | + onedot: + - 'products/1.1.1.1/**' + access: + - 'products/access/**' + analytics: + - 'products/analytics/**' + argo-tunnel: + - 'products/argo-tunnel/**' + byoip: + - 'products/byoip/**' + distributed-web: + - 'products/distributed-web/**' + docs-engine: + - 'products/docs-engine/**' + firewall: + - 'products/firewall/**' + gateway: + - 'products/gateway/**' + http3: + - 'products/http3/**' + images: + - 'products/images/**' + internet: + - 'products/internet/**' + load-balancing: + - 'products/load-balancing/**' + logs: + - 'products/logs/**' + magic-transit: + - 'products/magic-transit/**' + mobile-sdk: + - 'products/mobile-sdk/**' + network-interconnect: + - 'products/network-interconnect/**' + randomness-beacon: + - 'products/randomness-beacon/**' + registrar: + - 'products/registrar/**' + spectrum: + - 'products/spectrum/**' + ssl: + - 'products/ssl/**' + stream: + - 'products/stream/**' + tenant: + - 'products/tenant/**' + terraform: + - 'products/terraform/**' + time-services: + - 'products/time-services/**' + waf: + - 'products/waf/**' + workers: + - 'products/workers/**' + deploy-1-1-1-1: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.onedot == 'true' }} defaults: run: shell: bash working-directory: products/1.1.1.1 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -29,12 +123,14 @@ jobs: deploy-access: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.access == 'true' }} defaults: run: shell: bash working-directory: products/access steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -50,12 +146,14 @@ jobs: deploy-analytics: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.analytics == 'true' }} defaults: run: shell: bash working-directory: products/analytics steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -71,12 +169,14 @@ jobs: deploy-argo-tunnel: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.argo-tunnel == 'true' }} defaults: run: shell: bash working-directory: products/argo-tunnel steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -92,12 +192,14 @@ jobs: deploy-byoip: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.byoip == 'true' }} defaults: run: shell: bash working-directory: products/byoip steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -113,12 +215,14 @@ jobs: deploy-distributed-web: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.distributed-web == 'true' }} defaults: run: shell: bash working-directory: products/distributed-web steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -134,12 +238,14 @@ jobs: deploy-docs-engine: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.docs-engine == 'true' }} defaults: run: shell: bash working-directory: products/docs-engine steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -162,12 +268,14 @@ jobs: deploy-firewall: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.firewall == 'true' }} defaults: run: shell: bash working-directory: products/firewall steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -183,12 +291,14 @@ jobs: deploy-gateway: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.gateway == 'true' }} defaults: run: shell: bash working-directory: products/gateway steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -204,12 +314,14 @@ jobs: deploy-http3: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.http3 == 'true' }} defaults: run: shell: bash working-directory: products/http3 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -225,12 +337,14 @@ jobs: deploy-images: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.images == 'true' }} defaults: run: shell: bash working-directory: products/images steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -253,12 +367,14 @@ jobs: deploy-internet: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.internet == 'true' }} defaults: run: shell: bash working-directory: products/internet steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -274,12 +390,14 @@ jobs: deploy-load-balancing: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.load-balancing == 'true' }} defaults: run: shell: bash working-directory: products/load-balancing steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -295,12 +413,14 @@ jobs: deploy-logs: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.logs == 'true' }} defaults: run: shell: bash working-directory: products/logs steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -316,12 +436,14 @@ jobs: deploy-magic-transit: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.magic-transit == 'true' }} defaults: run: shell: bash working-directory: products/magic-transit steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -337,12 +459,14 @@ jobs: deploy-mobile-sdk: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.mobile-sdk == 'true' }} defaults: run: shell: bash working-directory: products/mobile-sdk steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -358,12 +482,14 @@ jobs: deploy-network-interconnect: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.network-interconnect == 'true' }} defaults: run: shell: bash working-directory: products/network-interconnect steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -379,12 +505,14 @@ jobs: deploy-randomness-beacon: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.randomness-beacon == 'true' }} defaults: run: shell: bash working-directory: products/randomness-beacon steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -400,12 +528,14 @@ jobs: deploy-registrar: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.registrar == 'true' }} defaults: run: shell: bash working-directory: products/registrar steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -421,12 +551,14 @@ jobs: deploy-spectrum: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.spectrum == 'true' }} defaults: run: shell: bash working-directory: products/spectrum steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -442,12 +574,14 @@ jobs: deploy-ssl: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.ssl == 'true' }} defaults: run: shell: bash working-directory: products/ssl steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -463,12 +597,14 @@ jobs: deploy-stream: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.stream == 'true' }} defaults: run: shell: bash working-directory: products/stream steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -484,12 +620,14 @@ jobs: deploy-tenant: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.tenant == 'true' }} defaults: run: shell: bash working-directory: products/tenant steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -505,12 +643,14 @@ jobs: deploy-terraform: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.terraform == 'true' }} defaults: run: shell: bash working-directory: products/terraform steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -533,12 +673,14 @@ jobs: deploy-time-services: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.time-services == 'true' }} defaults: run: shell: bash working-directory: products/time-services steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -554,12 +696,14 @@ jobs: deploy-waf: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.waf == 'true' }} defaults: run: shell: bash working-directory: products/waf steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0 @@ -575,12 +719,14 @@ jobs: deploy-workers: runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.workers == 'true' }} defaults: run: shell: bash working-directory: products/workers steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14.2.0