Skip to content

sdf

sdf #23

Workflow file for this run

name: Deploy Cloud New
on:
workflow_dispatch:
inputs:
branchOrCommit:
description: 'Branch/Commit/Tag'
required: false
type: string
default: 'master'
skip_ci:
description: 'Skip CI and deploy directly'
type: boolean
required: false
default: false
push:
branches:
- master
permissions:
id-token: write
contents: read
env:
ACTIONS_RUNNER_DEBUG: true
ACTIONS_STEP_DEBUG: true
concurrency: deploy-cloud-staging
jobs:
ci:
uses: ./.github/workflows/ci.yml
with:
branchOrCommit: ${{ inputs.branchOrCommit || github.sha }}
skip: ${{ inputs.skip_ci == 'true' }}
deploy-staging:
needs: ci
if: needs.ci.result == 'success' || needs.ci.result == 'skipped'
runs-on: ubuntu-latest
steps:
- run: |
echo "Starting deploy staging..."
sleep 25 # give you time to cancel manually
echo "Finished deploy"
check-staging:
needs: deploy-staging
if: needs.deploy-staging.result == 'success'
runs-on: ubuntu-latest
steps:
- run: echo "Check staging"
cancel-stack:
needs: deploy-staging
if: cancelled()
runs-on: ubuntu-latest
steps:
- run: echo "Cancelling stack"