-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (54 loc) · 1.95 KB
/
build-and-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
name: Build and Release
on:
workflow_dispatch:
push:
paths-ignore:
- "docs/**"
- ".github/workflows/update-docs.yml"
- "mkdocs.yml"
env:
NO_PROGRESS: 1
SERVER_REPO_PATH: ${{secrets.SERVER_REPO_PATH}}
SERVER_REPO_URL: ${{secrets.SERVER_REPO_URL}}
CACHE_PATH: ${{secrets.SERVER_REPO_PATH}}
VERSION: ${{ github.run_number }}
SOURCEFORGE_PREFIX: ${{secrets.SOURCEFORGE_PREFIX}}
CHANNEL: ${{ endsWith(github.ref, 'stable') && 'stable' || (endsWith(github.ref, 'preview') && 'preview' || 'unstable') }}
APPMARKET_PATH: ${{secrets.APPMARKET_PATH}}
SIGN_KEYS_PATH: ${{secrets.SIGN_KEYS_PATH}}
jobs:
build:
name: Build Collection
runs-on: self-hosted
timeout-minutes: 47000
steps:
- uses: actions/checkout@v1
with:
token: ${{ secrets.CI_TOKEN }}
submodules: true
- name: Add sign keys
run: rm -rf files/sign-keys && cp -r ${SIGN_KEYS_PATH} files/sign-keys
- name: Build system packages
run: make ELEMENT=system/deps.yml
- name: Write changelog
run: echo "${{ github.event.head_commit.message }}" > ChangeLog
- name: Generate metadata
run: make metadata
- name: Build Installer ISO
run: make ELEMENT=installer/image.yml
update-installer-iso:
name: Update Installer ISO
runs-on: self-hosted
timeout-minutes: 47000
needs: [ build ]
steps:
- uses: actions/checkout@v1
with:
token: ${{ secrets.CI_TOKEN }}
submodules: true
- name: Update installer ISO
run: |-
make checkout ELEMENT=installer/image.yml DESTDIR=${SERVER_REPO_PATH}/releases/${CHANNEL}/
(cd ${SERVER_REPO_PATH}/releases/${CHANNEL}/; zsyncmake -b 2048 -C -u ${SERVER_REPO_URL}/releases/${CHANNEL}/rlxos-${CHANNEL}-installer.iso rlxos-${CHANNEL}-installer.iso)
- name: Upload to sourceforge
run: scp -pr ${SERVER_REPO_PATH}/releases/${CHANNEL}/ ${SOURCEFORGE_PREFIX}/