-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (48 loc) · 1.61 KB
/
nightly_build.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
# Automation of Nightly builds (similar to the release build) & upload to NoCloud nightly repository
name: Nightly build
on:
workflow_dispatch:
schedule:
- cron: 16 2 * * *
jobs:
nightly_build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 20.x
if: github.repository_owner == 'DGAlexandru'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Use Node.js ${{ matrix.node-version }}'
uses: actions/setup-node@v4
with:
node-version: '${{ matrix.node-version }}'
- name: Install NPM
run: npm ci
- name: Generate OpenAPI Docs
run: npm run build_openapi_schema
- name: Build NoCloud FrontEnd
run: npm run build --workspace=frontend
- name: Build NoCloud BackEnd
run: npm run build --workspace=backend
- name: UPX-compress NoCloud binaries
run: npm run upx
- name: Generate Nightly ChangeLOG
run: npm run generate_nightly_changelog
- name: Generate Manifest
run: npm run build_release_manifest nightly
- name: Push generated files to Nightly repository
id: push_directory
uses: DGAlexandru/[email protected]
env:
SSH_DEPLOY_KEY: '${{ secrets.SSH_DEPLOY_KEY }}'
with:
source-directory: build
destination-github-username: NoCloudBot
destination-repository-name: NoCloud-nightly-builds
destination-repository-username: DGAlexandru
user-email: [email protected]
target-branch: master