Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 39 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
- '*'
pull_request:
workflow_dispatch:
inputs:
alpha_build:
description: 'Publish as Clover-Build-Alpha rolling_release'
required: false
default: true
type: boolean

jobs:
build-macos:
Expand Down Expand Up @@ -60,7 +66,20 @@ jobs:
CLOVERX64.efi.zip
Clover_r*.pkg

- name: Publish Release
- name: Verify Release Assets
run: |
shopt -s nullglob
missing=()
for pattern in '*.7z' 'CloverV2*.zip' 'CLOVERX64.efi.zip' 'Clover_r*.pkg'; do
files=($pattern)
if [ ${#files[@]} -eq 0 ]; then missing+=("$pattern"); fi
done
if [ ${#missing[@]} -gt 0 ]; then
echo "::error::Missing expected release artifact(s): ${missing[*]}"
exit 1
fi

- name: Publish Tagged Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v3
with:
Expand All @@ -70,3 +89,22 @@ jobs:
CLOVERX64.efi.zip
Clover_r*.pkg
generate_release_notes: true
prerelease: ${{ contains(github.ref_name, 'alpha') || contains(github.ref_name, 'beta') }}

- name: Publish Alpha Rolling Release
if: (github.event_name == 'workflow_dispatch' && inputs.alpha_build == true) || (github.event_name == 'push' && github.ref == 'refs/heads/master')
uses: softprops/action-gh-release@v3
with:
tag_name: Clover-Build-Alpha
name: "Clover Build Alpha (${{ env.GIT_SHA }})"
body: |
Automated alpha build from commit `${{ env.GIT_SHA }}` on branch `${{ github.ref_name }}`.
This is a rolling pre-release and will be overwritten by future alpha builds.
files: |
*.7z
CloverV2*.zip
CLOVERX64.efi.zip
Clover_r*.pkg
Comment on lines +103 to +107
generate_release_notes: false
prerelease: true
make_latest: false
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
Bootloader for macOS, Windows and Linux in UEFI and in legacy mode
### Read the DOC [Clover-Wiki](https://github.com/CloverHackyColor/CloverBootloader/wiki) / [Clover-Documentation](https://github.com/CloverHackyColor/Clover-Documentation) / [Clover History](https://htmlpreview.github.io/?https://github.com/CloverHackyColor/CloverBootloader/blob/master/Clover%20History.html)

### Downloads ➡︎ [Automated-Alpha-Build from commit](https://github.com/CloverHackyColor/CloverBootloader/releases/tag/Clover-Build-Alpha)
### Downloads ➡︎ [Latest Release](https://github.com/CloverHackyColor/CloverBootloader/releases)

# Features

- Boot macOS, Windows, and Linux in UEFI
Expand Down
Loading