Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
CI: Add Artifact workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
stevezhengshiqi authored Nov 30, 2020
1 parent 5f6fbe9 commit 7a4c85c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,25 @@ jobs:

- name: Initialize Variables
run: |
echo "CUR_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
echo "CUR_TAG=beta" >> $GITHUB_ENV
echo "DEVELOPER_DIR=/Applications/Xcode_${XCODE_VERSION}.app/Contents/Developer" >> $GITHUB_ENV
export DEVELOPER_DIR=/Applications/Xcode_${XCODE_VERSION}.app/Contents/Developer
- name: Initialize Tag
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
run: |
echo "CUR_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Run makefile
run: |
./makefile.sh --NO_GH_API --VERSION=${CUR_TAG} --PRE_RELEASE=Kext --PRE_RELEASE=OC
- name: Upload to Artifacts
uses: actions/upload-artifact@v2
with:
name: XiaoMi NoteBook Pro EFI ${{ env.CUR_TAG }}
path: build/*.zip

- name: Upload to Release
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit 7a4c85c

Please sign in to comment.