Ammar Githam
4 years ago
2 changed files with 57 additions and 17 deletions
@ -14,20 +14,20 @@ jobs: |
|||||
steps: |
steps: |
||||
- name: Checkout |
- name: Checkout |
||||
uses: actions/checkout@v2 |
uses: actions/checkout@v2 |
||||
|
|
||||
|
|
||||
- name: set up JDK 1.8 |
- name: set up JDK 1.8 |
||||
uses: actions/setup-java@v1 |
uses: actions/setup-java@v1 |
||||
with: |
with: |
||||
java-version: 1.8 |
java-version: 1.8 |
||||
|
|
||||
|
|
||||
- name: Grant execute permission for gradlew |
- name: Grant execute permission for gradlew |
||||
run: chmod +x gradlew |
run: chmod +x gradlew |
||||
|
|
||||
|
|
||||
- name: Build Github unsigned pre-release apk |
- name: Build Github unsigned pre-release apk |
||||
run: ./gradlew assembleGithubRelease --stacktrace --project-prop pre |
|
||||
|
|
||||
|
run: ./gradlew assembleGithubRelease --stacktrace --project-prop pre --project-prop split |
||||
|
|
||||
- name: Sign APK |
- name: Sign APK |
||||
uses: r0adkll/sign-android-release@v1 |
|
||||
|
uses: ammargitham/[email protected].1 |
||||
# ID used to access action output |
# ID used to access action output |
||||
id: sign_app |
id: sign_app |
||||
with: |
with: |
||||
@ -36,18 +36,19 @@ jobs: |
|||||
alias: ${{ secrets.ALIAS }} |
alias: ${{ secrets.ALIAS }} |
||||
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} |
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} |
||||
keyPassword: ${{ secrets.KEY_PASSWORD }} |
keyPassword: ${{ secrets.KEY_PASSWORD }} |
||||
|
|
||||
|
|
||||
- name: Get current date and time |
- name: Get current date and time |
||||
id: date |
id: date |
||||
run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M%S')" |
run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M%S')" |
||||
|
|
||||
# Create artifact |
|
||||
|
|
||||
|
# Create artifact |
||||
- name: Create apk artifact |
- name: Create apk artifact |
||||
uses: actions/upload-artifact@v2 |
uses: actions/upload-artifact@v2 |
||||
with: |
with: |
||||
name: barinsta_pre-release_${{ steps.date.outputs.date }} |
name: barinsta_pre-release_${{ steps.date.outputs.date }} |
||||
path: ${{steps.sign_app.outputs.signedReleaseFile}} |
|
||||
|
|
||||
|
# path: ${{steps.sign_app.outputs.signedReleaseFile}} |
||||
|
path: app/build/outputs/apk/github/release/*-signed.apk |
||||
|
|
||||
# Send success notification |
# Send success notification |
||||
- name: Send success Telegram notification |
- name: Send success Telegram notification |
||||
if: ${{ success() }} |
if: ${{ success() }} |
||||
@ -56,8 +57,9 @@ jobs: |
|||||
to: ${{ secrets.TELEGRAM_BUILDS_CHANNEL_TO }} |
to: ${{ secrets.TELEGRAM_BUILDS_CHANNEL_TO }} |
||||
token: ${{ secrets.TELEGRAM_BUILDS_BOT_TOKEN }} |
token: ${{ secrets.TELEGRAM_BUILDS_BOT_TOKEN }} |
||||
message: "${{ github.workflow }} ${{ github.job }} #${{ github.run_number }} completed successfully.\nURL: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}" |
message: "${{ github.workflow }} ${{ github.job }} #${{ github.run_number }} completed successfully.\nURL: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}" |
||||
document: ${{steps.sign_app.outputs.signedReleaseFile}} |
|
||||
|
|
||||
|
# document: ${{steps.sign_app.outputs.signedReleaseFile}} |
||||
|
document: app/build/outputs/apk/github/release/*-signed.apk |
||||
|
|
||||
# Send failure notification |
# Send failure notification |
||||
- name: Send failure Telegram notification |
- name: Send failure Telegram notification |
||||
if: ${{ failure() }} |
if: ${{ failure() }} |
||||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue