Skip to content

ci: add manual trigger #8

ci: add manual trigger

ci: add manual trigger #8

Workflow file for this run

name: 📤 Deploy Staging
on:
workflow_dispatch:
inputs:
image-tag:
description: The image tag to deploy
default: latest
required: false
push:
branches:
- ci/deploy
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
if: inputs.image-tag != null
uses: ./.github/workflows/build.yml
secrets: inherit
deploy:
if: inputs.image-tag != null
runs-on: arc-runner-set
needs: build
steps:
- uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GH_TOKEN }}
repository: dream-num/helm-chart-private
event-type: dispatch
client-payload: '{"service":"univer-typedoc","tag":"${{ needs.build.outputs.image-tag }}"}'
deploy-trigger:
if: inputs.image-tag != null
runs-on: arc-runner-set
steps:
- uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GH_TOKEN }}
repository: dream-num/helm-chart-private
event-type: dispatch
client-payload: '{"service":"univer-typedoc","tag":"${{ inputs.image-tag }}"}'