2020-12-12 15:32:05 +00:00
|
|
|
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
|
|
|
|
|
2023-01-28 12:32:30 +00:00
|
|
|
uses: ./.github/workflows/release-source.yml
|
|
|
|
secrets: inherit
|
2020-12-12 15:32:05 +00:00
|
|
|
|
|
|
|
docs:
|
|
|
|
name: Docs
|
|
|
|
needs: source
|
|
|
|
|
2023-01-28 12:32:30 +00:00
|
|
|
uses: ./.github/workflows/release-docs.yml
|
|
|
|
secrets: inherit
|
2020-12-12 15:32:05 +00:00
|
|
|
|
2023-01-28 12:32:30 +00:00
|
|
|
with:
|
|
|
|
version: ${{ needs.source.outputs.version }}
|
2020-12-12 15:32:05 +00:00
|
|
|
|
|
|
|
linux:
|
2021-02-05 11:31:27 +00:00
|
|
|
name: Linux (Generic)
|
|
|
|
needs: source
|
|
|
|
|
2023-01-28 12:32:30 +00:00
|
|
|
uses: ./.github/workflows/release-linux.yml
|
|
|
|
secrets: inherit
|
2021-02-05 11:31:27 +00:00
|
|
|
|
2023-04-25 17:43:45 +00:00
|
|
|
with:
|
|
|
|
survey_key: ${{ needs.source.outputs.survey_key }}
|
|
|
|
|
2020-12-12 15:32:05 +00:00
|
|
|
macos:
|
|
|
|
name: MacOS
|
|
|
|
needs: source
|
|
|
|
|
2023-01-28 12:32:30 +00:00
|
|
|
uses: ./.github/workflows/release-macos.yml
|
|
|
|
secrets: inherit
|
2020-12-12 15:32:05 +00:00
|
|
|
|
2023-04-25 17:43:45 +00:00
|
|
|
with:
|
|
|
|
survey_key: ${{ needs.source.outputs.survey_key }}
|
|
|
|
|
2020-12-12 15:32:05 +00:00
|
|
|
windows:
|
|
|
|
name: Windows
|
|
|
|
needs: source
|
|
|
|
|
2023-01-28 12:32:30 +00:00
|
|
|
uses: ./.github/workflows/release-windows.yml
|
|
|
|
secrets: inherit
|
2021-02-21 13:40:26 +00:00
|
|
|
|
2023-01-28 12:32:30 +00:00
|
|
|
with:
|
|
|
|
is_tag: ${{ needs.source.outputs.is_tag }}
|
2023-04-25 17:43:45 +00:00
|
|
|
survey_key: ${{ needs.source.outputs.survey_key }}
|
2020-12-12 15:32:05 +00:00
|
|
|
|
2023-01-28 12:32:30 +00:00
|
|
|
windows-store:
|
2021-02-04 22:09:38 +00:00
|
|
|
name: Windows Store
|
|
|
|
needs:
|
|
|
|
- source
|
|
|
|
- windows
|
|
|
|
|
|
|
|
if: needs.source.outputs.is_tag == 'true'
|
|
|
|
|
2023-01-28 12:32:30 +00:00
|
|
|
uses: ./.github/workflows/release-windows-store.yml
|
|
|
|
secrets: inherit
|
2021-02-04 22:09:38 +00:00
|
|
|
|
2023-01-28 13:13:21 +00:00
|
|
|
with:
|
|
|
|
version: ${{ needs.source.outputs.version }}
|
|
|
|
|
2023-07-01 12:30:57 +00:00
|
|
|
upload-cdn:
|
|
|
|
name: Upload (CDN)
|
2020-12-12 15:32:05 +00:00
|
|
|
needs:
|
|
|
|
- source
|
|
|
|
- docs
|
|
|
|
- linux
|
|
|
|
- macos
|
|
|
|
- windows
|
2023-01-28 13:13:21 +00:00
|
|
|
- windows-store
|
|
|
|
|
|
|
|
# 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')
|
2020-12-12 15:32:05 +00:00
|
|
|
|
2023-07-01 12:30:57 +00:00
|
|
|
uses: ./.github/workflows/upload-cdn.yml
|
2023-01-28 12:32:30 +00:00
|
|
|
secrets: inherit
|
2020-12-12 15:32:05 +00:00
|
|
|
|
2023-01-28 12:32:30 +00:00
|
|
|
with:
|
|
|
|
version: ${{ needs.source.outputs.version }}
|
|
|
|
folder: ${{ needs.source.outputs.folder }}
|
|
|
|
trigger_type: ${{ needs.source.outputs.trigger_type }}
|
2021-02-05 19:58:15 +00:00
|
|
|
|
|
|
|
upload-steam:
|
|
|
|
name: Upload (Steam)
|
|
|
|
needs:
|
|
|
|
- source
|
|
|
|
- linux
|
|
|
|
- macos
|
|
|
|
- windows
|
|
|
|
|
|
|
|
if: needs.source.outputs.trigger_type == 'new-master' || needs.source.outputs.trigger_type == 'new-tag'
|
|
|
|
|
2023-01-28 12:32:30 +00:00
|
|
|
uses: ./.github/workflows/upload-steam.yml
|
|
|
|
secrets: inherit
|
2021-02-05 19:58:15 +00:00
|
|
|
|
2023-01-28 12:32:30 +00:00
|
|
|
with:
|
|
|
|
version: ${{ needs.source.outputs.version }}
|
|
|
|
trigger_type: ${{ needs.source.outputs.trigger_type }}
|
2023-01-28 15:00:52 +00:00
|
|
|
|
|
|
|
upload-gog:
|
|
|
|
name: Upload (GOG)
|
|
|
|
needs:
|
|
|
|
- source
|
|
|
|
- linux
|
|
|
|
- macos
|
|
|
|
- windows
|
|
|
|
|
|
|
|
if: needs.source.outputs.trigger_type == 'new-tag'
|
|
|
|
|
|
|
|
uses: ./.github/workflows/upload-gog.yml
|
|
|
|
secrets: inherit
|
|
|
|
|
|
|
|
with:
|
|
|
|
version: ${{ needs.source.outputs.version }}
|