-
Notifications
You must be signed in to change notification settings - Fork 24
152 lines (135 loc) · 3.91 KB
/
snapshot.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
name: "Snapshot"
on:
workflow_dispatch:
inputs:
prerelease:
description: "Create a pre-release"
default: false
required: true
type: boolean
pull_request:
branches:
- main
types: [closed]
permissions:
contents: write
discussions: write
jobs:
version:
name: Describe
uses: ./.github/workflows/job_version.yml
title:
needs: version
name: Version ${{ needs.version.outputs.version }}
runs-on: ubuntu-latest
steps:
- run: "true"
prerelease:
if: ${{ inputs.prerelease }}
needs: version
name: Create pre-release
runs-on: ubuntu-latest
steps:
- uses: ncipollo/release-action@v1
with:
tag: ${{ needs.version.outputs.version }}
commit: "main"
name: Pre-release ${{ needs.version.outputs.version }}
draft: false
prerelease: true
generateReleaseNotes: true
discussionCategory: "Releases"
makeLatest: false
ubuntu:
needs: version
name: Ubuntu
uses: ./.github/workflows/job_ubuntu.yml
with:
version: ${{ needs.version.outputs.version }}
ubuntu-release:
if: ${{ inputs.prerelease }}
needs: [version, prerelease, ubuntu]
name: Ubuntu
uses: ./.github/workflows/job_release.yml
with:
version: ${{ needs.version.outputs.version }}
file1: Rare.deb
name1: Rare-${{ needs.version.outputs.version }}.deb
appimage:
needs: version
name: AppImage
uses: ./.github/workflows/job_appimage.yml
with:
version: ${{ needs.version.outputs.version }}
appimage-release:
if: ${{ inputs.prerelease }}
needs: [version, prerelease, appimage]
name: AppImage
uses: ./.github/workflows/job_release.yml
with:
version: ${{ needs.version.outputs.version }}
file1: Rare.AppImage
name1: Rare-${{ needs.version.outputs.version }}.AppImage
file2: Rare.AppImage.zsync
name2: Rare-${{ needs.version.outputs.version }}.AppImage.zsync
nuitka-win:
if: ${{ false }}
needs: version
name: Nuitka Windows
uses: ./.github/workflows/job_nuitka-win.yml
with:
version: ${{ needs.version.outputs.version }}
nuitka-win-release:
if: ${{ inputs.prerelease }}
needs: [version, prerelease, nuitka-win]
name: Nuitka Windows
uses: ./.github/workflows/job_release.yml
with:
version: ${{ needs.version.outputs.version }}
file1: Rare-Windows.zip
name1: Rare-Windows-${{ needs.version.outputs.version }}.zip
cx-freeze-msi:
needs: version
name: cx-Freeze msi
uses: ./.github/workflows/job_cx-freeze-msi.yml
with:
version: ${{ needs.version.outputs.version }}
cx-freeze-msi-release:
if: ${{ inputs.prerelease }}
needs: [version, prerelease, cx-freeze-msi]
name: cx-Freeze msi
uses: ./.github/workflows/job_release.yml
with:
version: ${{ needs.version.outputs.version }}
file1: Rare.msi
name1: Rare-${{ needs.version.outputs.version }}.msi
cx-freeze-zip:
needs: version
name: cx-Freeze zip
uses: ./.github/workflows/job_cx-freeze-zip.yml
with:
version: ${{ needs.version.outputs.version }}
cx-freeze-zip-release:
if: ${{ inputs.prerelease }}
needs: [version, prerelease, cx-freeze-zip]
name: cx-Freeze zip
uses: ./.github/workflows/job_release.yml
with:
version: ${{ needs.version.outputs.version }}
file1: Rare-Windows.zip
name1: Rare-Windows-${{ needs.version.outputs.version }}.zip
macos:
needs: version
name: macOS
uses: ./.github/workflows/job_macos.yml
with:
version: ${{ needs.version.outputs.version }}
macos-release:
if: ${{ inputs.prerelease }}
needs: [version, prerelease, macos]
name: macOS
uses: ./.github/workflows/job_release.yml
with:
version: ${{ needs.version.outputs.version }}
file1: Rare.dmg
name1: Rare-${{ needs.version.outputs.version }}.dmg