Skip to content

Commit

Permalink
workflow: create zip after new release
Browse files Browse the repository at this point in the history
* after releasing a new EFI version, a zip will be created and uploaded automatically
  • Loading branch information
SkyrilHD committed Jun 10, 2021
1 parent 72ce9db commit 14daa31
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 14daa31

Please sign in to comment.