Skip to content

Commit

Permalink
ci: ios release upload-release-asset
Browse files Browse the repository at this point in the history
  • Loading branch information
befovy committed Jul 3, 2020
1 parent 2858b90 commit 052418e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 10 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/ios_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
push:
tags:
- 'f*'
branches: [ master, main ]
pull_request:
branches: [ master, main ]

jobs:
build:
Expand All @@ -28,4 +25,25 @@ jobs:
- name: XCode build ijkplayer
working-directory: ios/IJKMediaPlayer
run: xcodebuild -project IJKMediaPlayer.xcodeproj -configuration Release -scheme Universal
run: xcodebuild -project IJKMediaPlayer.xcodeproj -configuration Release -scheme Universal

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload iOS Framework
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ios/CocoaPodsPub/IJKMediaPlayer.tar.gz
asset_name: IJKMediaPlayer.tar.gz
asset_content_type: application/gzip
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. See [standa

---

## 0.7.5 (2020-07-03)
## 0.7.6 (2020-07-03)

* fix: update position with duration value when playback complete ([f3d27d8](https://github.com/befovy/ijkplayer/commit/f3d27d832ba0a3472bb59c129c2c65591f8855d4))
* fix: use cmake configure generate ijkversion.h ([d252733](https://github.com/befovy/ijkplayer/commit/d252733c36cc05a2fc22ea23c99c04b4872b9f72))
Expand Down
4 changes: 2 additions & 2 deletions android/ijkplayer/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

VERSION_NAME=0.7.5
VERSION_CODE=000705
VERSION_NAME=0.7.6
VERSION_CODE=000706
GROUP=com.befovy.fijkplayer

# http://central.sonatype.org/pages/requirements.html
Expand Down
7 changes: 4 additions & 3 deletions ios/CocoaPodsPub/BIJKPlayer.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |spec|
#

spec.name = "BIJKPlayer"
spec.version = "0.7.3"
spec.version = "0.7.6"
spec.summary = "ijkplayer iOS video player SDK"

spec.author = { "befovy" => "befovy@gmail.com" }
Expand Down Expand Up @@ -74,8 +74,9 @@ Pod::Spec.new do |spec|
# Specify the location from where the source should be retrieved.
# Supports git, hg, bzr, svn and HTTP.
#

spec.source = { :http => "https://dl.bintray.com/befovytray/bijkplayer/f0.7.5/IJKMediaPlayer.tar.gz" }

spec.source = { :http => "https://github.com/befovy/ijkplayer/releases/download/f0.7.6/IJKMediaPlayer.tar.gz" }

# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# CocoaPods is smart about how it includes source code. For source files
Expand Down

0 comments on commit 052418e

Please sign in to comment.