Skip to content

⚙️ Publish

⚙️ Publish #19

name: ⚙️ Publish
run-name: "Publish: ${{ github.sha }}${{ inputs.deploy-to != 'none' && format(' ❱❱ {0}', inputs.deploy-to) || ''}}"
on:
workflow_dispatch:
inputs:
deploy-to:
description: "Deploy published image to"
type: choice
options:
- none
- staging
- prod
default: staging
required: true
concurrency: deploy
permissions:
contents: write
checks: write
id-token: write
packages: write
jobs:
ci:
name: CI
uses: WalletConnect/ci_workflows/.github/workflows/[email protected]
secrets: inherit
with:
check-infra: false
check-app: true
check-udeps: false
release:
name: Release
uses: WalletConnect/ci_workflows/.github/workflows/[email protected]
secrets: inherit
with:
infra-changed: false
app-changed: true
cd:
name: CD
needs: [ release ]
if: ${{ inputs.deploy-to == 'staging' || inputs.deploy-to == 'prod' }}
secrets: inherit
uses: ./.github/workflows/sub-cd.yml

Check failure on line 48 in .github/workflows/dispatch_publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dispatch_publish.yml

Invalid workflow file

error parsing called workflow ".github/workflows/dispatch_publish.yml" -> "./.github/workflows/sub-cd.yml" (source branch with sha:ee60016942b1bc8cf650840e8f6e72ddcaae9435) --> "WalletConnect/ci_workflows/.github/workflows/cd.yml@0fix/secrets_in_deploy" : failed to fetch workflow: reference to workflow should be either a valid branch, tag, or commit
with:
deploy-infra: false
deploy-app: true
deploy-prod: ${{ inputs.deploy-to == 'prod' }}
version: ${{ needs.release.outputs.version }}