mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Add nightly APK uploading
This commit is contained in:
parent
48a874edb4
commit
1031601552
@ -9,7 +9,6 @@ variables:
|
|||||||
|
|
||||||
stages: # List of stages for jobs, and their order of execution
|
stages: # List of stages for jobs, and their order of execution
|
||||||
- build
|
- build
|
||||||
- testupload
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
tags:
|
tags:
|
||||||
@ -35,6 +34,7 @@ build:
|
|||||||
- touch VERSION_NAME_$VERSION_NAME.txt
|
- 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 "Keyboard $VERSION_NAME - https://gitlab.futo.org/alex/latinime/-/jobs/$CI_JOB_ID/artifacts/raw/keyboard-$VERSION_NAME.apk"
|
||||||
- echo $VERSION_CODE $VERSION_NAME
|
- echo $VERSION_CODE $VERSION_NAME
|
||||||
|
- ./uploadNightly.sh
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "keyboard-$VERSION_NAME"
|
name: "keyboard-$VERSION_NAME"
|
||||||
paths:
|
paths:
|
||||||
@ -42,15 +42,3 @@ build:
|
|||||||
- ./*.aab
|
- ./*.aab
|
||||||
- ./*.txt
|
- ./*.txt
|
||||||
when: manual
|
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
uploadNightly.sh
Executable file
5
uploadNightly.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user