Skip to content

Commit

Permalink
ci: fix tag name, extract tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
befovy committed Jul 11, 2020
1 parent fcfc5ac commit dafb3b3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ios_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,21 @@ jobs:
run: xcodebuild -project IJKMediaPlayer.xcodeproj -configuration Release -scheme Universal


- name: Extract tag name
id: tag
uses: actions/github-script@0.2.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
return context.payload.ref.replace('refs/tags/', '');
- name: Upload to Bintray
working-directory: ios/CocoaPodsPub
run: |
curl --progress-bar --verbose -T IJKMediaPlayer.tar.gz -ubefovy:${{ secrets.BINTRAY_APIKEY }} \
-H "X-Bintray-Package:bijkplayer" \
-H "X-Bintray-Version:${{ github.ref }}" \
https://api.bintray.com/content/befovytray/bijkplayer/${{ github.ref }}/IJKMediaPlayer.tar.gz\;publish\=1 | tee /dev/null
-H "X-Bintray-Version:${{ steps.tag.outputs.result }}" \
https://api.bintray.com/content/befovytray/bijkplayer/${{ steps.tag.outputs.result }}/IJKMediaPlayer.tar.gz\;publish\=1 | tee /dev/null
- name: Create Release
id: create_release
Expand Down

0 comments on commit dafb3b3

Please sign in to comment.