-
Notifications
You must be signed in to change notification settings - Fork 3
101 lines (100 loc) · 3.1 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
---
name: Deploy release with compiled applications
on:
push:
tags:
- "v*.*"
- "v*.*.*"
jobs:
build_linux:
name: "Build on Linux Racket CS Stable"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Bogdanp/setup-racket@v1.11
with:
architecture: x64
distribution: full
variant: CS
version: stable
- name: Installing frosthaven-manager and its dependencies
run: make install RACO_INSTALL_ARGS=--no-docs
- name: Bundling frosthaven-manager distribution
run: make linux-FrosthavenManager.tar.gz
- name: Upload FrosthavenManager artifact
uses: actions/upload-artifact@v4
with:
name: linux-dist
path: linux-FrosthavenManager.tar.gz
build_macos:
name: "Build on MacOS Racket CS Stable"
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: Bogdanp/setup-racket@v1.11
with:
architecture: x64
distribution: full
variant: CS
version: stable
- name: Installing frosthaven-manager and its dependencies
run: make install RACO_INSTALL_ARGS=--no-docs
- name: Bundling frosthaven-manager distribution
run: make macOS-FrosthavenManager.tar.gz
- name: Upload FrosthavenManager.app artifact
uses: actions/upload-artifact@v4
with:
name: macOS-dist
path: macOS-FrosthavenManager.tar.gz
build_windows:
name: "Build on Windows Racket CS Stable"
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: Bogdanp/setup-racket@v1.11
with:
architecture: x64
distribution: full
variant: CS
version: stable
- name: Install make
run: choco install make -y
- name: Installing frosthaven-manager and its dependencies
run: make install RACO_INSTALL_ARGS=--no-docs
- name: Bundling frosthaven-manager distribution
run: make windows-FrosthavenManager.zip
- name: Upload FrosthavenManager artifact
uses: actions/upload-artifact@v4
with:
name: windows-dist
path: windows-FrosthavenManager.zip
release:
name: "Release new version"
runs-on: ubuntu-latest
needs:
- build_linux
- build_macos
- build_windows
steps:
- name: Download FrosthavenManager artifact
uses: actions/download-artifact@v4
with:
name: linux-dist
- name: Download FrosthavenManager.app artifact
uses: actions/download-artifact@v4
with:
name: macOS-dist
- name: Download FrosthavenManager.exe artifact
uses: actions/download-artifact@v4
with:
name: windows-dist
- name: Release
uses: softprops/action-gh-release@v1
with:
fail_on_unmatched_files: true
target_commitish: ${{github.sha}}
generate_release_notes: true
files: |
macOS-FrosthavenManager.tar.gz
linux-FrosthavenManager.tar.gz
windows-FrosthavenManager.zip