Code update #71
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
description: 'Ref to build (for Pull Requests, use refs/pull/NNN/head)' | ||
required: true | ||
repository_dispatch: | ||
# client_payload should be the same as the inputs for workflow_dispatch. | ||
types: | ||
- Build* | ||
release: | ||
types: | ||
- published | ||
jobs: | ||
source: | ||
name: Source | ||
uses: ./.github/workflows/release-source.yml | ||
secrets: inherit | ||
docs: | ||
name: Docs | ||
needs: source | ||
if: ${{ false }} # CM | ||
uses: ./.github/workflows/release-docs.yml | ||
secrets: inherit | ||
with: | ||
version: ${{ needs.source.outputs.version }} | ||
linux: | ||
name: Linux (Generic) | ||
needs: source | ||
uses: ./.github/workflows/release-linux.yml | ||
secrets: inherit | ||
with: | ||
survey_key: ${{ needs.source.outputs.survey_key }} | ||
macos: | ||
name: MacOS | ||
needs: source | ||
uses: ./.github/workflows/release-macos.yml | ||
secrets: inherit | ||
with: | ||
survey_key: ${{ needs.source.outputs.survey_key }} | ||
windows: | ||
name: Windows | ||
needs: source | ||
uses: ./.github/workflows/release-windows.yml | ||
secrets: inherit | ||
with: | ||
is_tag: ${{ needs.source.outputs.is_tag }} | ||
survey_key: ${{ needs.source.outputs.survey_key }} | ||
windows-store: | ||
name: Windows Store | ||
needs: | ||
- source | ||
- windows | ||
if: ${{ false }} # CM | ||
# if: needs.source.outputs.is_tag == 'true' | ||
uses: ./.github/workflows/release-windows-store.yml | ||
secrets: inherit | ||
with: | ||
version: ${{ needs.source.outputs.version }} | ||
upload: | ||
name: Upload | ||
needs: | ||
- source | ||
- docs | ||
- linux | ||
- macos | ||
- windows | ||
- windows-store | ||
if: ${{ false }} # CM | ||
# As windows-store is condition, we need to check ourselves if we need to run. | ||
# The always() makes sure the rest is always evaluated. | ||
# if: always() && needs.source.result == 'success' && needs.docs.result == 'success' && needs.linux.result == 'success' && needs.macos.result == 'success' && needs.windows.result == 'success' && (needs.windows-store.result == 'success' || needs.windows-store.result == 'skipped') | ||
runs-on: ubuntu-latest | ||
# This job is empty, but ensures no upload job starts before all targets finished and are successful. | ||
steps: | ||
- name: Build completed | ||
run: | | ||
true |