Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
36eac10f
Commit
36eac10f
authored
5 months ago
by
Aleksandras Kostarevas
Browse files
Options
Downloads
Patches
Plain Diff
Update CI
parent
6a6c9bff
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+28
-3
28 additions, 3 deletions
.gitlab-ci.yml
uploadNightly.sh
+8
-1
8 additions, 1 deletion
uploadNightly.sh
with
36 additions
and
4 deletions
.gitlab-ci.yml
+
28
−
3
View file @
36eac10f
...
...
@@ -10,7 +10,33 @@ variables:
stages
:
# List of stages for jobs, and their order of execution
-
build
build
:
buildUnstable
:
tags
:
-
docker
stage
:
build
before_script
:
-
git fetch origin master:master
-
export VERSION_NAME=`git describe --tags --dirty`
-
export VERSION_CODE=`git rev-list --first-parent --count master`
-
echo $VERSION_CODE $VERSION_NAME
-
./setUpPropertiesCI.sh
script
:
-
gradle assembleUnstableRelease -s
-
mv build/outputs/apk/unstable/release/latinime-unstable-release.apk ./keyboard-unstable-$VERSION_NAME.apk
-
touch VERSION_CODE_$VERSION_CODE.txt
-
touch VERSION_NAME_$VERSION_NAME.txt
-
echo "Keyboard (Unstable) $VERSION_NAME - https://gitlab.futo.org/alex/latinime/-/jobs/$CI_JOB_ID/artifacts/raw/keyboard-unstable-$VERSION_NAME.apk"
-
echo $VERSION_CODE $VERSION_NAME
-
./uploadNightly.sh ./keyboard-unstable-$VERSION_NAME.apk $VERSION_CODE $VERSION_NAME
artifacts
:
name
:
"
keyboard-unstable-$VERSION_NAME"
paths
:
-
./*.apk
-
./*.aab
-
./*.txt
when
:
manual
buildStable
:
tags
:
-
docker
stage
:
build
...
...
@@ -34,9 +60,8 @@ 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"
name
:
"
keyboard-
stable-
$VERSION_NAME"
paths
:
-
./*.apk
-
./*.aab
...
...
This diff is collapsed.
Click to expand it.
uploadNightly.sh
+
8
−
1
View file @
36eac10f
...
...
@@ -2,4 +2,11 @@
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
\ No newline at end of file
aws s3
cp
"
$1
"
s3://
$KEYBOARD_R2_BUCKET_NAME
/nightly.apk
--endpoint
=
$KEYBOARD_R2_ENDPOINT_URL
echo
"
$2
"
>
nightly_version
echo
"https://keyboard.futo.org/nightly.apk"
>>
nightly_version
echo
"
$3
"
>>
nightly_version
aws s3
cp
nightly_version s3://
$KEYBOARD_R2_BUCKET_NAME
/nightly_version
--endpoint
=
$KEYBOARD_R2_ENDPOINT_URL
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment