From 14daa31a1ebd2eae43e4b57b47cadb04eace1f7d Mon Sep 17 00:00:00 2001 From: SkyrilHD Date: Thu, 10 Jun 2021 03:54:06 +0200 Subject: [PATCH] workflow: create zip after new release * after releasing a new EFI version, a zip will be created and uploaded automatically --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a1ad49a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + release: + types: [published] + +env: + PROJECT_TYPE: KEXT + +jobs: + build: + name: Build + runs-on: macos-latest + env: + JOB_TYPE: BUILD + steps: + - name: Build + uses: actions/checkout@v2 + - run: echo "TAG_VER=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV + - run: mkdir Output && zip --exclude '*.git*' --exclude '*.github*' --exclude '*Output*' -r -X "Output/${{ github.event.repository.name }}-${TAG_VER}.zip" . + + - name: Upload to Artifacts + uses: actions/upload-artifact@v2 + with: + name: Artifacts + path: Output/*.zip + + - name: Upload to Release + if: github.event_name == 'release' + uses: svenstaro/upload-release-action@e74ff71f7d8a4c4745b560a485cc5fdb9b5b999d + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: Output/*.zip + tag: ${{ github.ref }} + file_glob: true