Skip to content

Commit

Permalink
[#860] Upload APK to the RTMIS server
Browse files Browse the repository at this point in the history
  • Loading branch information
anjarakvo committed Jan 12, 2024
1 parent 928bd75 commit 45b87d0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/apk-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,20 @@ jobs:
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK


- name: 🌟 Send APK
env:
APK_VERSION: ${{ github.ref_name }}
SECRET: ${{ secrets.APK_UPLOAD_SECRET }}
run: |
curl -X 'POST' \
'https://rtmis.akvotest.org/api/v1/device/apk/upload' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"apk_url": "'"$APK_URL"'",
"apk_version": "'"$APK_VERSION"'",
"secret": "'"$SECRET"'"
}'
18 changes: 17 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,20 @@ jobs:
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK


- name: 🌟 Send APK
env:
APK_VERSION: ${{ github.ref_name }}
SECRET: ${{ secrets.APK_UPLOAD_SECRET }}
run: |
curl -X 'POST' \
'https://rtmis.akvo.org/api/v1/device/apk/upload' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"apk_url": "'"$APK_URL"'",
"apk_version": "'"$APK_VERSION"'",
"secret": "'"$SECRET"'"
}'

0 comments on commit 45b87d0

Please # to comment.