-
Notifications
You must be signed in to change notification settings - Fork 23
135 lines (109 loc) · 4.36 KB
/
dev-release.yml
File metadata and controls
135 lines (109 loc) · 4.36 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
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
name: Release Dev Latest
on:
push:
tags: ['[0-9]+.[0-9]+.[0-9]+-dev.*']
permissions:
contents: write
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
build_name: win-x64
args: '--win --x64 --publish never -c electron-builder-dev.json'
- os: windows-latest
build_name: win-ia32
args: '--win --ia32 --publish never -c electron-builder-dev.json'
- os: macos-13
build_name: mac-x64
args: '--mac --x64 --publish never -c electron-builder-dev.json'
- os: macos-14
build_name: mac-arm64
args: '--mac --arm64 --publish never -c electron-builder-dev.json'
- os: ubuntu-latest
build_name: linux-x64
args: '--linux --x64 --publish never -c electron-builder-dev.json'
environment: dev
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
id: py
with:
python-version: '3.11'
- name: Setup Node
uses: actions/setup-node@v4
with: { node-version: 20, cache: yarn }
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Make .env file
run: |
echo "API_URL=${{ secrets.API_URL }}" > .env
echo "WS_URL=${{ secrets.WS_URL }}" >> .env
echo "CROWDIN_DISTRIBUTION_HASH=${{ secrets.CROWDIN_DISTRIBUTION_HASH }}" >> .env
echo "UPDATE_CHANNEL=dev" >> .env
- name: Build electron
uses: samuelmeuli/action-electron-builder@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release: false
build_script_name: build:action
args: ${{ matrix.args }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.build_name }}
merge-multiple: true
if-no-files-found: ignore
path: |
# Windows
dist/*Setup.exe
dist/*Setup.exe.blockmap
# macOS
dist/*.dmg
dist/*.zip
dist/*.blockmap
# Linux
dist/*.AppImage
# yml files
dist/**/*dev*.yml
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with: { path: dist }
- name: Publish rolling prerelease
uses: ncipollo/release-action@v1
with:
tag: ${{ github.ref_name }}
name: Dev Release ${{ github.ref_name }}
body: |
## 該版本為開發版本
:warning: 所有以 `-dev.xxxxxxxx` 結尾的版本皆為開發中版本,開發中版本所使用的伺服器獨立於正式版所使用之伺服器,帳號亦不通用
若要下載最新版本,請點擊下方連接:
> https://github.com/NerdyHomeReOpen/RiceCall/releases/latest
若你接受**需要重建帳號並且隨時會清除所有資料的風險**,並想了解最新開發進度,方可下載並使用
另提醒,下載測試版本將會**強制刪除正式版本**,請斟酌考慮後再進行下載
---
## This Version is a Dev Build
:warning: All versions ending with `-dev.xxxxxxxx` are development builds.
Development builds use servers that are independent from the official release servers, and accounts are not shared between them.
To download the latest version, please visit:
> https://github.com/NerdyHomeReOpen/RiceCall/releases/latest
If you accept the **risk of needing to recreate your account and having all data wiped at any time**, and wish to follow the latest development progress, you may download and use these builds.
Please note: Installing a test build will **forcefully remove the official release version**. Consider carefully before proceeding.
commit: ${{ github.sha }}
prerelease: true
allowUpdates: true
replacesArtifacts: true
removeArtifacts: true
omitBodyDuringUpdate: true
artifacts: 'dist/**'
token: ${{ secrets.GITHUB_TOKEN }}