mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-01 12:53:27 +01:00
Build Clover.app package from yml
Even if it is excluded from build and releases
This commit is contained in:
parent
065e1bb152
commit
423a78aded
22
.github/workflows/main.yml
vendored
22
.github/workflows/main.yml
vendored
@ -19,7 +19,6 @@ jobs:
|
|||||||
git fetch --prune --unshallow --tags
|
git fetch --prune --unshallow --tags
|
||||||
echo "CUR_TAG=$(git tag -l | tail -1)" >> $GITHUB_ENV
|
echo "CUR_TAG=$(git tag -l | tail -1)" >> $GITHUB_ENV
|
||||||
echo "GIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
echo "GIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Update CloverHackyColor/OpenCorePkg fork
|
- name: Update CloverHackyColor/OpenCorePkg fork
|
||||||
run: git submodule init && git submodule update
|
run: git submodule init && git submodule update
|
||||||
|
|
||||||
@ -33,14 +32,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
chmod +x ./buildme
|
chmod +x ./buildme
|
||||||
./buildme "" ci
|
./buildme "" ci
|
||||||
|
|
||||||
- name: Prepare Release Packs
|
- name: Prepare Release Packs
|
||||||
run: |
|
run: |
|
||||||
(cd "CloverPackage/CloverV2/EFI/CLOVER/" && zip -q "CLOVERX64.efi.zip" "CLOVERX64.efi" || exit 1)
|
(cd "CloverPackage/CloverV2/EFI/CLOVER/" && zip -q "CLOVERX64.efi.zip" "CLOVERX64.efi" || exit 1)
|
||||||
(cd "CloverPackage/sym/CloverISO-${{ env.CUR_TAG }}" && 7z a Clover-${{ env.CUR_TAG }}-X64.iso.7z *.iso || exit 1)
|
(cd "CloverPackage/sym/CloverISO-${{ env.CUR_TAG }}" && 7z a Clover-${{ env.CUR_TAG }}-X64.iso.7z *.iso || exit 1)
|
||||||
releaseItems=(CloverPackage/sym/CloverISO*/*.7z CloverPackage/sym/CloverV2*.zip CloverPackage/CloverV2/EFI/CLOVER/CLOVERX64.efi.zip CloverPackage/sym/Clover_r*.pkg)
|
releaseItems=(CloverPackage/sym/CloverISO*/*.7z CloverPackage/sym/Clover.app*.pkg CloverPackage/sym/CloverV2*.zip CloverPackage/CloverV2/EFI/CLOVER/CLOVERX64.efi.zip CloverPackage/sym/Clover_r*.pkg)
|
||||||
for releaseItem in "${releaseItems[@]}"; do cp -Rf "${releaseItem}" ./ || exit 1; done
|
for releaseItem in "${releaseItems[@]}"; do cp -Rf "${releaseItem}" ./ || exit 1; done
|
||||||
|
|
||||||
- name: Generate Release Notes
|
- name: Generate Release Notes
|
||||||
run: |
|
run: |
|
||||||
echo "Recent commit descriptions are:" >> ReleaseNotes.md
|
echo "Recent commit descriptions are:" >> ReleaseNotes.md
|
||||||
@ -48,24 +45,35 @@ jobs:
|
|||||||
echo '' >> ReleaseNotes.md
|
echo '' >> ReleaseNotes.md
|
||||||
/usr/bin/sed -i "" "s:sym/Clover:Clover:g" CloverPackage/sym/Clover*.md5
|
/usr/bin/sed -i "" "s:sym/Clover:Clover:g" CloverPackage/sym/Clover*.md5
|
||||||
cat CloverPackage/sym/Clover*.md5 >> ReleaseNotes.md
|
cat CloverPackage/sym/Clover*.md5 >> ReleaseNotes.md
|
||||||
|
|
||||||
- name: Upload to Artifacts
|
- name: Upload to Artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Clover beta-${{ env.GIT_SHA }}
|
name: Clover beta-${{ env.GIT_SHA }}
|
||||||
path: |
|
path: |
|
||||||
*.7z
|
*.7z
|
||||||
|
Clover.app*.pkg
|
||||||
CloverV2*.zip
|
CloverV2*.zip
|
||||||
CLOVERX64.efi.zip
|
CLOVERX64.efi.zip
|
||||||
Clover_r*.pkg
|
Clover_r*.pkg
|
||||||
|
|
||||||
# - name: Upload to Release
|
# - name: Upload to Release
|
||||||
# if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
# if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
||||||
# uses: ncipollo/release-action@v1
|
# uses: ncipollo/release-action@v1
|
||||||
# with:
|
# with:
|
||||||
# artifacts: ./*.7z, ./CloverV2*.zip, ./CLOVERX64.efi.zip, ./Clover_r*.pkg
|
# artifacts: ./*.7z, ./Clover.app*.pkg, ./CloverV2*.zip, ./CLOVERX64.efi.zip, ./Clover_r*.pkg
|
||||||
# bodyFile: ReleaseNotes.md
|
# bodyFile: ReleaseNotes.md
|
||||||
# name: Release v5.1 r${{ env.CUR_TAG }}
|
# name: Release v5.1 r${{ env.CUR_TAG }}
|
||||||
# prerelease: false
|
# prerelease: false
|
||||||
# tag: ${{ env.CUR_TAG }}
|
# tag: ${{ env.CUR_TAG }}
|
||||||
# token: ${{ secrets.GITHUB_TOKEN }}
|
# token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
© 2022 GitHub, Inc.
|
||||||
|
Terms
|
||||||
|
Privacy
|
||||||
|
Security
|
||||||
|
Status
|
||||||
|
Docs
|
||||||
|
Contact GitHub
|
||||||
|
Pricing
|
||||||
|
API
|
||||||
|
Training
|
||||||
|
Blog
|
||||||
|
About
|
||||||
|
Loading…
Reference in New Issue
Block a user