-
-
Notifications
You must be signed in to change notification settings - Fork 23
73 lines (73 loc) · 2.23 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
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
{
'name': 'Nightly build',
'on': {
'schedule': [
{
'cron': '0 2 * * *'
}
]
},
'jobs':
{
'nightly_build':
{
'runs-on': 'ubuntu-latest',
'if': "github.repository_owner == 'congatudo'",
'steps':
[
{
'uses': 'actions/checkout@v3',
'with': {
'fetch-depth': 0
}
},
{
'name': 'Use Node.js 18.x',
'uses': 'actions/setup-node@v3',
'with': { 'node-version': '18.x' },
},
{ 'name': 'Install', 'run': 'npm ci' },
{
'name': 'Generate OpenAPI Docs',
'run': 'npm run build_openapi_schema',
},
{
'name': 'Build Congatudo frontend',
'run': 'npm run build --workspace=frontend',
},
{
'name': 'Build Congatudo',
'run': 'npm run build --workspace=backend',
},
{
'name': 'UPX-compress Congatudo binaries',
'run': 'npm run upx',
},
{
'name': 'Generate changelog',
'run': 'npm run generate_nightly_changelog',
},
{
'name': 'Build manifest',
'run': 'npm run build_release_manifest nightly',
},
{
'name': 'Push binaries to nightly repo',
'id': 'push_directory',
'uses': 'congatudo/github-action-push-to-another-repository@main',
'env': {
'API_TOKEN_GITHUB': '${{ secrets.NIGHTLY_API_TOKEN_GITHUB }}'
},
'with': {
'source-directory': 'build',
'destination-github-username': 'congatudo-bot',
'destination-repository-name': 'congatudo-nightly',
'destination-repository-username': 'congatudo',
'user-email': '[email protected]',
'target-branch': 'master'
}
}
],
},
},
}