Update pushevent.yml #125
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: iOS XP2P CI | |
on: | |
push: | |
paths-ignore: # 有時候不想要改個文档也触发 github actions | |
- '**.md' | |
- 'LICENSE' | |
jobs: | |
build-and-deploy: | |
runs-on: macos-12 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: build libenet | |
if: startsWith(github.event.ref, 'refs/heads') | |
run: | | |
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') | |
export GIT_BRANCH_IMAGE_VERSION=$VERSION | |
sh .github/script/build_ijk_ios.sh Debug | |
env: | |
GIT_ACCESS_TOKEN: ${{ secrets.IOT_GITHUB_ACCESS_TOKEN }} | |
PROVISIONING_PASSWORD: ${{ secrets.GPG_DECRYPT_PASSPHRASE }} | |
- name: push libenet | |
if: startsWith(github.event.ref, 'refs/tags') | |
run: | | |
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') | |
export GIT_BRANCH_IMAGE_VERSION=$VERSION | |
sh .github/script/build_ijk_ios.sh Release | |
env: | |
GIT_ACCESS_TOKEN: ${{ secrets.IOT_GITHUB_ACCESS_TOKEN }} | |
PROVISIONING_PASSWORD: ${{ secrets.GPG_DECRYPT_PASSPHRASE }} | |
- name: Upload NETSDK Library | |
uses: actions/upload-artifact@v4 | |
with: | |
name: IJKMediaFramework.framework | |
path: ios/IJKMediaPlayer/iot-thirdparty-ios/Source/IJKPlayer-iOS/IJKMediaFramework.framework |