Skip to content

github workflows observe master branch #46

github workflows observe master branch

github workflows observe master branch #46

Workflow file for this run

name: build ios
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: Build and analyse default scheme using xcodebuild command
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Read Tag Version
run: |
tag=$(git describe --abbrev=0 | cut -c 2- )
d=$(TZ=UTC-8 date +'%y%m%d%H%M%S')
echo "TAG=ios-$tag" > constants.env
- run: brew install tree
- name: Download Pre Compiled Dependencies
run: cd shell && ./download-pre.sh ios 0.10.1-230831144049-ijk
- run: pod lib lint --allow-warnings --platforms=ios
- name: Publish Release
run: |
cd examples/ios && build-framework.sh
- name: Zip ios libs
run: |
cd examples/ios/build/Release-ios
zip -rq IJKMediaPlayerKit-iOS-${{ env.TAG }}.zip ./*
- name: Create iOS Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: iOS-${{ env.TAG }}
release_name: Release iOS-${{ env.TAG }}
draft: false
prerelease: false
- name: Upload iOS Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: examples/ios/build/Release-ios/IJKMediaPlayerKit-iOS-${{ env.TAG }}.zip
asset_name: "IJKMediaPlayerKit-iOS-${{ env.TAG }}.zip"
asset_content_type: application/zip