Skip to content

Valetudo 2024.06.1

Valetudo 2024.06.1 #47

Workflow file for this run

{
'name': 'Release',
'on': { 'release': { 'types': ['published'] } },
'jobs':
{
'publish-release':
{
'runs-on': 'ubuntu-latest',
'strategy': { 'matrix': { 'node-version': ['20.x'] } },
'steps':
[
{ 'uses': 'actions/checkout@v4' },
{
'name': 'Use Node.js ${{ matrix.node-version }}',
'uses': 'actions/setup-node@v4',
'with': { 'node-version': '${{ matrix.node-version }}' },
},
{ 'name': 'Install', 'run': 'npm ci' },
{
'name': 'Generate OpenAPI Docs',
'run': 'npm run build_openapi_schema',
},
{
'name': 'Build Valetudo frontend',
'run': 'npm run build --workspace=frontend',
},
{
'name': 'Build Valetudo armv7',
'run': 'npm run build_armv7 --workspace=backend',
},
{
'name': 'Build Valetudo armv7 lowmem',
'run': 'npm run build_armv7_lowmem --workspace=backend',
},
{
'name': 'Build Valetudo aarch64',
'run': 'npm run build_aarch64 --workspace=backend',
},
{
'name': 'Upload Valetudo armv7',
'uses': 'hypfer/[email protected]',
'env': { 'GITHUB_TOKEN': '${{ secrets.GITHUB_TOKEN }}' },
'with':
{
'upload_url': '${{ github.event.release.upload_url }}',
'asset_path': './build/armv7/valetudo',
'asset_name': 'valetudo-armv7',
'asset_content_type': 'binary/octet-stream',
},
},
{
'name': 'Upload Valetudo armv7 lowmem',
'uses': 'hypfer/[email protected]',
'env': { 'GITHUB_TOKEN': '${{ secrets.GITHUB_TOKEN }}' },
'with':
{
'upload_url': '${{ github.event.release.upload_url }}',
'asset_path': './build/armv7/valetudo-lowmem',
'asset_name': 'valetudo-armv7-lowmem',
'asset_content_type': 'binary/octet-stream',
},
},
{
'name': 'Upload Valetudo aarch64',
'uses': 'hypfer/[email protected]',
'env': { 'GITHUB_TOKEN': '${{ secrets.GITHUB_TOKEN }}' },
'with':
{
'upload_url': '${{ github.event.release.upload_url }}',
'asset_path': './build/aarch64/valetudo',
'asset_name': 'valetudo-aarch64',
'asset_content_type': 'binary/octet-stream',
},
},
{
'name': 'UPX-compress valetudo binaries',
'run': 'npm run upx',
},
{
'name': 'Upload Valetudo armv7.upx',
'uses': 'hypfer/[email protected]',
'env': { 'GITHUB_TOKEN': '${{ secrets.GITHUB_TOKEN }}' },
'with':
{
'upload_url': '${{ github.event.release.upload_url }}',
'asset_path': './build/armv7/valetudo.upx',
'asset_name': 'valetudo-armv7.upx',
'asset_content_type': 'binary/octet-stream',
},
},
{
'name': 'Upload Valetudo armv7 lowmem.upx',
'uses': 'hypfer/[email protected]',
'env': { 'GITHUB_TOKEN': '${{ secrets.GITHUB_TOKEN }}' },
'with':
{
'upload_url': '${{ github.event.release.upload_url }}',
'asset_path': './build/armv7/valetudo-lowmem.upx',
'asset_name': 'valetudo-armv7-lowmem.upx',
'asset_content_type': 'binary/octet-stream',
},
},
{
'name': 'Upload Valetudo aarch64.upx',
'uses': 'hypfer/[email protected]',
'env': { 'GITHUB_TOKEN': '${{ secrets.GITHUB_TOKEN }}' },
'with':
{
'upload_url': '${{ github.event.release.upload_url }}',
'asset_path': './build/aarch64/valetudo.upx',
'asset_name': 'valetudo-aarch64.upx',
'asset_content_type': 'binary/octet-stream',
},
},
{
'name': 'Build manifest',
'run': 'npm run build_release_manifest',
},
{
'name': 'Upload manifest',
'uses': 'hypfer/[email protected]',
'env': { 'GITHUB_TOKEN': '${{ secrets.GITHUB_TOKEN }}' },
'with':
{
'upload_url': '${{ github.event.release.upload_url }}',
'asset_path': './build/valetudo_release_manifest.json',
'asset_name': 'valetudo_release_manifest.json',
'asset_content_type': 'application/json',
},
},
{
'name': 'Upload OpenAPI spec',
'uses': 'hypfer/[email protected]',
'env': { 'GITHUB_TOKEN': '${{ secrets.GITHUB_TOKEN }}' },
'with':
{
'upload_url': '${{ github.event.release.upload_url }}',
'asset_path': './build/valetudo.openapi.schema.json',
'asset_name': 'valetudo.openapi.schema.json',
'asset_content_type': 'application/json',
},
},
],
},
},
}