Build Armbian Installer ISO #39
This file contains hidden or 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
name: "Build Armbian Installer ISO" | |
on: | |
workflow_dispatch: | |
inputs: | |
version_type: | |
description: "版本类型" | |
required: true | |
default: "standard" | |
type: choice | |
options: | |
- "standard" | |
- "debian12_minimal" | |
- "ubuntu24_minimal" | |
- "homeassistant_debian12_minimal" | |
jobs: | |
build-release: | |
runs-on: ubuntu-22.04 | |
env: | |
VERSION_TYPE: ${{ github.event.inputs.version_type }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Image | |
run: ./build.sh | |
- name: "Prepare Release Assets" | |
run: | | |
# 根据版本类型重命名ISO文件 | |
if [ "$VERSION_TYPE" = "debian12_minimal" ]; then | |
mv output/armbian-installer-x86_64-standard.iso output/armbian-installer-x86_64-debian12_minimal.iso | |
fi | |
if [ "$VERSION_TYPE" = "ubuntu24_minimal" ]; then | |
mv output/armbian-installer-x86_64-standard.iso output/armbian-installer-x86_64-ubuntu24_minimal.iso | |
fi | |
if [ "$VERSION_TYPE" = "homeassistant_debian12_minimal" ]; then | |
mv output/armbian-installer-x86_64-standard.iso output/armbian-installer-x86_64-homeassistant_debian12_minimal.iso | |
fi | |
- name: "Publish" | |
uses: softprops/action-gh-release@v2.2.1 | |
with: | |
tag_name: "Armbian-Installer-x86_64-ISO" | |
body_path: ${{ github.workspace }}/info.md | |
files: | | |
output/armbian-installer-x86_64-${{ github.event.inputs.version_type }}.iso | |
token: ${{ secrets.GITHUB_TOKEN }} |