Skip to content

Commit

Permalink
build: db release fix
Browse files Browse the repository at this point in the history
  • Loading branch information
umalib committed Apr 5, 2024
1 parent ea2bf9d commit d67db92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
pages:
stage: deploy
variables:
FF_USE_FASTZIP: "true"
ARTIFACT_COMPRESSION_LEVEL: "fastest"
tags:
- shell
rules:
- if: $CI_COMMIT_BRANCH == 'version'
variables:
FF_USE_FASTZIP: "true"
ARTIFACT_COMPRESSION_LEVEL: "fastest"
script:
- rm -rf public
- mkdir public
- mv docs/* public/
- DATE_STR=$(date +'%Y%m%d')
- DB_URL=https:\\/\\/gitgud.io\\/umalib\\/UmaLibDesktop\\/-\\/jobs\\/$CI_JOB_ID\\/artifacts\\/raw\\/public\\/$DATE_STR.zip
- sed -i '' s/TOFILL/$DB_URL/g public/update-info.json
artifacts:
paths:
- public
1 change: 1 addition & 0 deletions docs/update-info.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"db_url": "TOFILL",
"db_version": 20240405,
"url": "https://gitgud.io/umalib/UmaLibDesktop/-/releases/permalink/latest",
"version": "3.0.2-Final"
Expand Down

0 comments on commit d67db92

Please sign in to comment.