-
Notifications
You must be signed in to change notification settings - Fork 0
175 lines (171 loc) · 5.5 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
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# test
name: Publish package to GitHub Packages
on:
push:
tags:
- '*'
jobs:
linux:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Build
env:
VERSION_SEMVER: ${{ steps.vars.outputs.tag }}
run: bash package-linux_x64.sh
- name: Upload math result for job Linux
uses: actions/upload-artifact@v3
with:
name: linux-lib
path: release/*
windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- uses: ilammy/msvc-dev-cmd@v1
- uses: microsoft/setup-msbuild@v1.1
- uses: milliewalky/setup-7-zip@v1
- name: Build
env:
VERSION_SEMVER: ${{ steps.vars.outputs.tag }}
run: bash package-windows_x86_64.sh
- name: Upload math result for job Windows
uses: actions/upload-artifact@v3
with:
name: win-lib
path: release/*
macos-arm:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Build
env:
VERSION_SEMVER: ${{ steps.vars.outputs.tag }}
run: bash package-macos.sh
- name: Upload math result for job Mac
uses: actions/upload-artifact@v3
with:
name: mac-lib-arm
path: release/*
macos:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Build
env:
VERSION_SEMVER: ${{ steps.vars.outputs.tag }}
run: bash package-macos.sh
- name: Upload math result for job Mac
uses: actions/upload-artifact@v3
with:
name: mac-lib-x86
path: release/*
publish:
runs-on: ubuntu-latest
needs: [macos,windows,linux,macos-arm]
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v3
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Check output
env:
VERSION_SEMVER: ${{ steps.vars.outputs.tag }}
run: |
echo $VERSION_SEMVER
echo ${{ steps.vars.outputs.tag }}
- name: Download math result for job Windows
uses: actions/download-artifact@v3
with:
name: win-lib
path: .
- name: Download math result for job Linux
uses: actions/download-artifact@v3
with:
name: linux-lib
path: .
- name: Download math result for job Mac-arm
uses: actions/download-artifact@v3
with:
name: mac-lib-arm
path: .
- name: Download math result for job Mac-x86
uses: actions/download-artifact@v3
with:
name: mac-lib-x86
path: .
- name: Check downloads
run: |
echo "Downloads:"
ls -als
- name: Make gitHub release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: upload Linux AppImage
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: BowlerLauncher-x86_64.AppImage
asset_name: BowlerLauncher-x86_64.AppImage
asset_content_type: application/octet-stream
- name: upload Debian
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: BowlerLauncher-x86_64.deb
asset_name: BowlerLauncher-x86_64.deb
asset_content_type: application/octet-stream
- name: upload Windows exe
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: BowlerLauncher-x86_64.exe
asset_name: BowlerLauncher-x86_64.exe
asset_content_type: application/exe
- name: upload Windows zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: BowlerLauncher-x86_64.zip
asset_name: BowlerLauncher-x86_64.zip
asset_content_type: application/zip
- name: upload MacOS dmg x86
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: BowlerLauncher-x86_64.dmg
asset_name: BowlerLauncher-x86_64.dmg
asset_content_type: application/octet-stream
- name: upload MacOS dmg arm
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: BowlerLauncher-arm64.dmg
asset_name: BowlerLauncher-arm64.dmg
asset_content_type: application/octet-stream