-
Notifications
You must be signed in to change notification settings - Fork 11
85 lines (71 loc) · 2.85 KB
/
build_release.yml
File metadata and controls
85 lines (71 loc) · 2.85 KB
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
name: Build Release
on:
release:
types: [published]
jobs:
build-windows:
uses: ./.github/workflows/build_windows.yml
with:
version: ${{ github.event.release.tag_name }}
build_type: Release
secrets:
SEED_KEY: ${{ secrets.SEED_KEY }}
build-wiiu:
uses: ./.github/workflows/build_wiiu.yml
with:
version: ${{ github.event.release.tag_name }}
build_type: Release
secrets:
SEED_KEY: ${{ secrets.SEED_KEY }}
build-mac-x64:
uses: ./.github/workflows/build_mac_x64.yml
with:
version: ${{ github.event.release.tag_name }}
build_type: Release
secrets:
SEED_KEY: ${{ secrets.SEED_KEY }}
build-mac-arm:
uses: ./.github/workflows/build_mac_arm.yml
with:
version: ${{ github.event.release.tag_name }}
build_type: Release
secrets:
SEED_KEY: ${{ secrets.SEED_KEY }}
attach-to-release:
name: Attach To Release
needs: [build-windows, build-wiiu, build-mac-x64, build-mac-arm]
runs-on: ubuntu-latest
steps:
# Will make the later gh release command work
- name: Checkout Repository
uses: actions/checkout@v6
- name: Create Folder for Windows Files
run: mkdir wwhd_rando_${{ github.event.release.tag_name }}_windows
- name: Download Windows Artifact
uses: actions/download-artifact@v7
with:
path: ${{ github.workspace }}/wwhd_rando_${{ github.event.release.tag_name }}_windows
name: wwhd_rando_${{ github.event.release.tag_name }}_windows # pass name so it doesn't get put in a folder
- name: Download Wii U Artifact
uses: actions/download-artifact@v7
with:
name: wwhd_rando_${{ github.event.release.tag_name }}.wuhb # pass name so it doesn't get put in a folder
- name: Download Mac OS Artifact (x64)
uses: actions/download-artifact@v7
with:
name: wwhd_rando_${{ github.event.release.tag_name }}_mac_x64.dmg # pass name so it doesn't get put in a folder
- name: Download Mac OS Artifact (ARM)
uses: actions/download-artifact@v7
with:
name: wwhd_rando_${{ github.event.release.tag_name }}_mac_arm.dmg # pass name so it doesn't get put in a folder
- name: Zip windows file
uses: montudor/action-zip@v1
with:
args: zip -qq -r wwhd_rando_${{ github.event.release.tag_name }}_windows.zip wwhd_rando_${{ github.event.release.tag_name }}_windows
- name: Attach Files
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
run: |
ls -R
mv wwhd_rando.dmg wwhd_rando_${{ github.event.release.tag_name }}_mac.dmg
gh release upload ${{ github.event.release.tag_name }} wwhd_rando_${{ github.event.release.tag_name }}_windows.zip wwhd_rando.wuhb wwhd_rando_${{ github.event.release.tag_name }}_mac_x64.dmg wwhd_rando_${{ github.event.release.tag_name }}_mac_arm.dmg