Skip to content

Commit

Permalink
Replace gh actions for signing and releasing (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangRongLin authored Feb 18, 2024
1 parent 996c063 commit 60d99d0
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,33 +59,29 @@ jobs:

- name: "Sign release"
if: ${{ env.new_commit == 'true' }}
uses: r0adkll/sign-android-release@v1
uses: ilharp/sign-android-release@v1
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
releaseDir: app/build/outputs/apk/release
signingKey: ${{ secrets.SIGNING_KEY }}
keyAlias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
buildToolsVersion: 33.0.0

- name: "Create GitHub release"
- name: "Rename apk"
if: ${{ env.new_commit == 'true' }}
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tagger.outputs.new_tag }}
release_name: ${{ steps.tagger.outputs.new_tag }}
commitish: dev
id: rename_apk
run: |
mv ${{steps.sign_app.outputs.signedFile}} app/build/outputs/apk/release/NewPipe_${{steps.tagger.outputs.new_tag}}.apk
echo "::set-output name=apkFile::app/build/outputs/apk/release/NewPipe_${{steps.tagger.outputs.new_tag}}.apk"
- name: "Upload release APK"
- name: "Create GitHub release with APK"
if: ${{ env.new_commit == 'true' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v1
id: create_release
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.sign_app.outputs.signedReleaseFile }}
asset_name: NewPipe_${{steps.tagger.outputs.new_tag}}.apk
asset_content_type: application/zip
tag_name: ${{ steps.tagger.outputs.new_tag }}
target_commitish: dev
files: |
${{steps.rename_apk.outputs.apkFile}}

0 comments on commit 60d99d0

Please sign in to comment.