Nightly Build #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Very similar to the release build. | |
{ | |
'name': 'Nightly build', | |
'on': { | |
'schedule': [ | |
{ | |
'cron': '16 2 * * *' | |
} | |
], | |
'workflow_dispatch': null | |
}, | |
'jobs': | |
{ | |
'nightly_build': | |
{ | |
'runs-on': 'ubuntu-latest', | |
'if': "github.repository_owner == 'DGAlexandru'", | |
'steps': | |
[ | |
{ | |
'uses': 'actions/checkout@v4', | |
'with': { | |
'fetch-depth': 0 | |
} | |
}, | |
{ | |
'name': 'Use Node.js 20.x', | |
'uses': 'actions/setup-node@v4', | |
'with': { 'node-version': '20.x' }, | |
}, | |
{ 'name': 'Install', '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', | |
'run': 'npm run build --workspace=backend', | |
}, | |
{ | |
'name': 'UPX-compress NoCloud 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': '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' | |
} | |
} | |
], | |
}, | |
}, | |
} |