Skip to content

Deploy Cloud New

Deploy Cloud New #10

Workflow file for this run

name: Deploy Cloud New
on:
workflow_dispatch:
inputs:
skip_ci:
description: 'Skip CI and deploy directly'
type: boolean
required: false
default: false
permissions:
id-token: write
contents: read
env:
ACTIONS_RUNNER_DEBUG: true
ACTIONS_STEP_DEBUG: true
concurrency: deploy-cloud-staging
jobs:
ci:
if: github.event_name != 'workflow_dispatch' || github.event.inputs.skip_ci != 'true'
runs-on: ubuntu-latest
steps:
- run: echo "CI"
ci-skipped:
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.skip_ci == 'true' }}
runs-on: ubuntu-latest
steps:
- run: echo "CI was skipped by user input"
deploy-staging:
needs: [ci, ci-skipped]
if: always() && (needs.ci.result == 'success' || needs.ci-skipped.result == 'success')
runs-on: ubuntu-latest
steps:
- run: echo "Deploy staging staging"
check-staging:
needs: deploy-staging
if: always() && needs.deploy-staging.result == 'success'
runs-on: ubuntu-latest
steps:
- run: echo "Check staging"
cancel-stack:
if: cancelled()
runs-on: ubuntu-latest
steps:
- run: echo "Cancelling stack"