-
-
Notifications
You must be signed in to change notification settings - Fork 50
79 lines (69 loc) · 1.77 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Build and Release
on:
push:
# Push all normally versioned tags
tags:
- 'v*'
permissions:
contents: write
jobs:
# Demo Build
build-demo:
uses: './.github/workflows/build.yml'
with:
target_ref: '${{ github.ref_name }}'
variant: 'demo'
generate_version: true
do_package: true
postfix: '-demo'
build-flatpak-demo:
uses: './.github/workflows/build-flatpak.yml'
with:
target_ref: '${{ github.ref_name }}'
flatpak_branch: 'release'
postfix: '-demo'
gh-publish:
needs: [build-demo, build-flatpak-demo]
uses: './.github/workflows/publish-gh.yml'
secrets: inherit
with:
postfix: '-demo'
# Full Release
# This needs "gh-publish-demo" due to the fact that
# we need to overwrite the artifacts related.
build-full:
if: ${{ ! contains(github.ref_name, 'rc') }}
uses: './.github/workflows/build.yml'
with:
target_ref: '${{ github.ref_name }}'
variant: 'full'
generate_version: true
do_package: true
postfix: '-full'
itch-publish:
needs: build-full
uses: './.github/workflows/publish-itch.yml'
secrets: inherit
with:
postfix: '-full'
steam-publish:
needs: build-full
uses: './.github/workflows/publish-steam.yml'
secrets: inherit
with:
branch: 'staging'
postfix: '-full'
# Delete artifacts after use.
cleanup:
if: 'always()'
runs-on: ubuntu-latest
needs: [itch-publish, steam-publish, gh-publish]
steps:
- uses: GeekyEggo/delete-artifact@v5
with:
name: |
*