Skip to content

Commit

Permalink
ci: extract tag name for release
Browse files Browse the repository at this point in the history
  • Loading branch information
befovy committed Jul 10, 2021
1 parent 6a351e9 commit b0117e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/android_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,20 @@ jobs:
./gradlew -PNEXUS_PASSWORD=${NEXUS_PASSWORD} :fijkplayer-full:uploadArchives
zip -r Symbols.zip fijkplayer-full/build/intermediates/cmake/release/obj
- 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: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
name: Release ${{ github.ref }}
name: Release ${{ steps.tag.outputs.result }}
draft: false
artifacts: "./android/ijkplayer/Symbols.zip"
allowUpdates: true
3 changes: 1 addition & 2 deletions .github/workflows/ios_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ jobs:
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
name: Release ${{ github.ref }}
name: Release ${{ steps.tag.outputs.result }}
draft: false
artifacts: "./ios/CocoaPodsPub/IJKMediaPlayer.tar.gz"
allowUpdates: true

0 comments on commit b0117e0

Please sign in to comment.