Skip to content

Commit

Permalink
Also upload unsigned apk.
Browse files Browse the repository at this point in the history
  • Loading branch information
iksteen committed Oct 7, 2020
1 parent a299492 commit 282a60b
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Extract tag name
id: tag_name
run: echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- uses: actions/checkout@v2
- name: Build App
run: ./gradlew assembleRelease
- name: Sign App
id: sign-android-app
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -30,11 +24,25 @@ jobs:
release_name: LinxShare ${{ github.ref }}
draft: false
prerelease: false
- name: Extract tag name
id: tag_name
run: echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- name: Upload Release Asset
id: upload-release-asset
- name: Upload Unsigned Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: app/build/outputs/apk/release/app-release-unsigned.apk
asset_name: linxshare-${{ steps.tag_name.outputs.SOURCE_TAG }}-unsigned.apk
asset_content_type: application/zip
- name: Sign App
id: sign-android-app
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
- name: Upload Signed Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 282a60b

Please sign in to comment.