@@ -29,17 +29,11 @@ jobs:
29
29
needs : create_release
30
30
strategy :
31
31
matrix :
32
- os : [windows-latest, ubuntu-latest, macos-latest ]
32
+ os : [windows-latest]
33
33
include :
34
34
- os : windows-latest
35
35
release_suffix : windows
36
36
release_format : exe
37
- - os : ubuntu-latest
38
- release_suffix : ubuntu
39
- release_format : deb
40
- - os : macos-latest
41
- release_suffix : macos
42
- release_format : dmg
43
37
runs-on : ${{ matrix.os }}
44
38
45
39
steps :
55
49
with :
56
50
bun-version : ' latest'
57
51
58
- - name : prepare install
59
- if : matrix.os == 'ubuntu-latest'
60
- run : rm -rf dist/linux-unpacked
61
-
62
- - name : Install dependencies
63
- run : bun install
52
+ - run : bun install
64
53
65
54
- run : bun run gitClone
66
55
- run : bun run mvRPG
73
62
name : rpgjs.${{ matrix.release_format }}
74
63
path : dist/rpgjs.${{ matrix.release_format }}
75
64
76
- - name : Upload linux appimage
77
- if : matrix.os == 'ubuntu-latest'
78
- uses : actions/upload-artifact@v3
79
- with :
80
- name : rpgjs.AppImage
81
- path : dist/rpgjs.AppImage
82
-
83
65
- name : Upload .exe.blockmap
84
66
if : matrix.release_format == 'exe'
85
67
uses : actions/upload-artifact@v3
@@ -116,38 +98,17 @@ jobs:
116
98
with :
117
99
name : latest.yml
118
100
path : ~/
119
- - name : Download dmg
120
- uses : actions/download-artifact@v3
121
- with :
122
- name : rpgjs.dmg
123
- path : ~/
124
- - name : Download deb
125
- uses : actions/download-artifact@v3
126
- with :
127
- name : rpgjs.deb
128
- path : ~/
129
- - name : Download AppImage
130
- uses : actions/download-artifact@v3
131
- with :
132
- name : rpgjs.AppImage
133
- path : ~/
134
101
- name : Calculate hashes
135
102
id : calc_hash
136
103
run : |
137
104
echo "::set-output name=blockmaphash::$(sha256sum /home/runner/rpgjs.exe.blockmap|cut -c-64)"
138
105
echo "::set-output name=ymlhash::$(sha256sum /home/runner/latest.yml|cut -c-64)"
139
106
echo "::set-output name=exehash::$(sha256sum /home/runner/rpgjs.exe|cut -c-64)"
140
- echo "::set-output name=dmghash::$(sha256sum /home/runner/rpgjs.dmg|cut -c-64)"
141
- echo "::set-output name=debhash::$(sha256sum /home/runner/rpgjs.deb|cut -c-64)"
142
- echo "::set-output name=apphash::$(sha256sum /home/runner/rpgjs.AppImage|cut -c-64)"
143
107
- name : Perform release
144
108
uses : BTS-CM/action-gh-release@cd28b0f5ee8571b76cfdaa62a30d51d752317477
145
109
with :
146
110
files : |
147
111
/home/runner/rpgjs.exe
148
- /home/runner/rpgjs.dmg
149
- /home/runner/rpgjs.deb
150
- /home/runner/rpgjs.AppImage
151
112
/home/runner/rpgjs.exe.blockmap
152
113
/home/runner/latest.yml
153
114
tag_name : ${{ needs.create_release.outputs.tag-name }}
@@ -159,9 +120,6 @@ jobs:
159
120
| Platform | SHA256 Checksum |
160
121
|---|---|
161
122
|[Microsoft Windows](https://github.com/BTS-CM/RPGJS-Electron/releases/download/${{ github.ref_name }}/rpgjs.exe)|`${{steps.calc_hash.outputs.exehash}}`|
162
- |[MacOS](https://github.com/BTS-CM/RPGJS-Electron/releases/download/${{ github.ref_name }}/rpgjs.dmg)|`${{steps.calc_hash.outputs.dmghash}}`|
163
- |[Linux Deb](https://github.com/BTS-CM/RPGJS-Electron/releases/download/${{ github.ref_name }}/rpgjs.deb)|`${{steps.calc_hash.outputs.debhash}}`|
164
- |[Linux AppImage](https://github.com/BTS-CM/RPGJS-Electron/releases/download/${{ github.ref_name }}/rpgjs.AppImage)|`${{steps.calc_hash.outputs.apphash}}`|
165
123
|[EXE blockmap](https://github.com/BTS-CM/RPGJS-Electron/releases/download/${{ github.ref_name }}/rpgjs.exe.blockmap)|`${{steps.calc_hash.outputs.blockmaphash}}`|
166
124
|[Latest.yml](https://github.com/BTS-CM/RPGJS-Electron/releases/download/${{ github.ref_name }}/latest.yml)|`${{steps.calc_hash.outputs.ymlhash}}`|
167
125
env :
0 commit comments