Skip to content

Commit

Permalink
Add nightly APK uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
abb128 committed Jul 23, 2024
1 parent 48a874e commit 1031601
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
14 changes: 1 addition & 13 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ variables:

stages: # List of stages for jobs, and their order of execution
- build
- testupload

build:
tags:
Expand All @@ -35,22 +34,11 @@ build:
- touch VERSION_NAME_$VERSION_NAME.txt
- echo "Keyboard $VERSION_NAME - https://gitlab.futo.org/alex/latinime/-/jobs/$CI_JOB_ID/artifacts/raw/keyboard-$VERSION_NAME.apk"
- echo $VERSION_CODE $VERSION_NAME
- ./uploadNightly.sh
artifacts:
name: "keyboard-$VERSION_NAME"
paths:
- ./*.apk
- ./*.aab
- ./*.txt
when: manual

testupload:
tags:
- docker
stage: testupload
script:
- echo example > test.apk
- aws configure set aws_access_key_id $KEYBOARD_R2_ACCESS_KEY_ID
- aws configure set aws_secret_access_key $KEYBOARD_R2_SECRET_ACCESS_KEY
- aws configure set region $KEYBOARD_R2_DEFAULT_REGION
- aws s3 cp ./test.apk s3://$KEYBOARD_R2_BUCKET_NAME/test.apk --endpoint=$KEYBOARD_R2_ENDPOINT_URL
when: manual
5 changes: 5 additions & 0 deletions uploadNightly.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
aws configure set aws_access_key_id $KEYBOARD_R2_ACCESS_KEY_ID
aws configure set aws_secret_access_key $KEYBOARD_R2_SECRET_ACCESS_KEY
aws configure set region $KEYBOARD_R2_DEFAULT_REGION
aws s3 cp ./keyboard*.apk s3://$KEYBOARD_R2_BUCKET_NAME/nightly.apk --endpoint=$KEYBOARD_R2_ENDPOINT_URL

0 comments on commit 1031601

Please sign in to comment.