Skip to content

umbrelOS 1.1.1

umbrelOS 1.1.1 #45

name: Create release on tag
on:
push:
tags:
- "*"
defaults:
run:
working-directory: packages/os
jobs:
build-os:
runs-on: ${{ matrix.task == 'build:amd64' && 'ubicloud-standard-16' || 'ubicloud-standard-16-arm' }}
defaults:
run:
working-directory: packages/os
strategy:
fail-fast: false
matrix:
task:
- build:amd64
- build:arm64
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm run ${{ matrix.task }}
# TODO: Use .img.xz for all release assets once https://github.com/balena-io/etcher/issues/4064 is fixed
- name: Prepare arm64 release assets
if: matrix.task == 'build:arm64'
run: cd build && (zip umbrelos-pi4.img.zip umbrelos-pi4.img & zip umbrelos-pi5.img.zip umbrelos-pi5.img & wait)
- name: Prepare amd64 release assets
if: matrix.task == 'build:amd64'
run: cd build && sudo xz --keep --threads=0 umbrelos-amd64.img
- name: Create GitHub Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
with:
draft: true
name: umbrelOS ${{ github.ref_name }}
files: |
packages/os/build/*.update
packages/os/build/*.img.zip
packages/os/build/*.img.xz