CI: Add CPV and remove Upload to Release stage

This commit is contained in:
stevezhengshiqi 2021-05-11 08:04:19 +08:00
parent 75b7443625
commit e66d417326
3 changed files with 17 additions and 12 deletions

View File

@ -30,13 +30,16 @@ jobs:
HOMEBREW_NO_AUTO_UPDATE: 1
- name: Build Clover Pack
run: ./buildme "" ci
run: |
chmod +x ./buildme
./buildme "" ci
- name: Prepare Release Packs
run: |
(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)
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)
(cd "CloverPackage/CloverConfigPlistValidator/" && mv CloverConfigPlistValidator* "CloverConfigPlistValidator" && zip -q "CloverConfigPlistValidator.zip" "CloverConfigPlistValidator" || exit 1)
releaseItems=(CloverPackage/sym/CloverISO*/*.7z CloverPackage/sym/Clover.app*.pkg CloverPackage/CloverConfigPlistValidator/CloverConfigPlistValidator.zip 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
- name: Generate Release Notes
@ -54,17 +57,18 @@ jobs:
path: |
*.7z
Clover.app*.pkg
CloverConfigPlistValidator.zip
CloverV2*.zip
CLOVERX64.efi.zip
Clover_r*.pkg
- name: Upload to Release
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1
with:
artifacts: ./*.7z, ./Clover.app*.pkg, ./CloverV2*.zip, ./CLOVERX64.efi.zip, ./Clover_r*.pkg
bodyFile: ReleaseNotes.md
name: Release v5.1 r${{ env.CUR_TAG }}
prerelease: false
tag: ${{ env.CUR_TAG }}
token: ${{ secrets.GITHUB_TOKEN }}
# - name: Upload to Release
# if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
# uses: ncipollo/release-action@v1
# with:
# artifacts: ./*.7z, ./Clover.app*.pkg, ./CloverConfigPlistValidator.zip, ./CloverV2*.zip, ./CLOVERX64.efi.zip, ./Clover_r*.pkg
# bodyFile: ReleaseNotes.md
# name: Release v5.1 r${{ env.CUR_TAG }}
# prerelease: false
# tag: ${{ env.CUR_TAG }}
# token: ${{ secrets.GITHUB_TOKEN }}

1
.gitignore vendored
View File

@ -11,6 +11,7 @@
# /CloverPackage/
/CloverPackage/sym/
/CloverPackage/CloverConfigPlistValidator/
/CloverPackage/CloverV2/BootSectors/boot0af
/CloverPackage/CloverV2/BootSectors/boot0ss
/CloverPackage/CloverV2/BootSectors/boot0md

0
buildme Normal file → Executable file
View File