forked from YARC-Official/YARG-BleedingEdge
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (60 loc) · 1.81 KB
/
nightly-builder.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
name: 🤖🔨 Automatic Nightly Builder
on:
schedule:
- cron: '25 0,12 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
check:
uses: ./.github/workflows/check-release.yml
with:
repositoryAuthor: "YARC-Official"
repositoryName: "YARG"
repositoryBranch: "dev"
linux-builder:
needs: [check]
if: needs.check.outputs.linuxBuild == 'true'
name: "🔨 Build - Linux"
uses: ./.github/workflows/build-Linux.yml
secrets: inherit
with:
versionName: ${{ needs.check.outputs.tagName }}
buildType: 'nightly'
mac-builder:
needs: [check]
if: needs.check.outputs.macBuild == 'true'
name: "🔨 Build - MacOS"
uses: ./.github/workflows/build-Mac.yml
secrets: inherit
with:
versionName: ${{ needs.check.outputs.tagName }}
buildType: 'nightly'
windows-builder:
needs: [check]
if: needs.check.outputs.windowsBuild == 'true'
name: "🔨 Build - Windows"
uses: ./.github/workflows/build-Windows.yml
secrets: inherit
with:
versionName: ${{ needs.check.outputs.tagName }}
buildType: 'nightly'
publish:
needs: [check, linux-builder, mac-builder, windows-builder]
runs-on: ubuntu-latest
steps:
- name: "Download builds from artifacts"
uses: actions/download-artifact@v4
with:
merge-multiple: true
path: builds
pattern: YARG (*) - *
- name: "[Post-build] Upload to releases"
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
release_name: Nightly Build - ${{ needs.check.outputs.tagName }}
tag: ${{ needs.check.outputs.tagName }}
file: builds/*
file_glob: true
body: ${{ needs.check.outputs.messageBody }}