mirror of
https://gitgud.io/amevarashi/rjw-sexperience-ideology.git
synced 2024-08-15 00:43:19 +00:00
CI: expose About.xml, change package name and version to project name and branch name respectively
This commit is contained in:
parent
ebb9708efe
commit
0a5a9769e7
1 changed files with 4 additions and 3 deletions
|
@ -55,7 +55,7 @@ build:
|
||||||
when: on_success
|
when: on_success
|
||||||
expire_in: 1 day
|
expire_in: 1 day
|
||||||
paths:
|
paths:
|
||||||
- "*" # Incluse everything
|
- "*" # Include everything
|
||||||
exclude:
|
exclude:
|
||||||
- ".*" # Exclude dot files
|
- ".*" # Exclude dot files
|
||||||
- ".*/**/*" # Exclude everything in the dot folders
|
- ".*/**/*" # Exclude everything in the dot folders
|
||||||
|
@ -66,12 +66,13 @@ release_dev:
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG
|
||||||
when: never # Do not run this job when a tag is created manually
|
when: never # Do not run this job when a tag is created manually
|
||||||
- if: $CI_COMMIT_BRANCH == "dev" # Run this job when commits are pushed or merged to the dev branch
|
- if: $CI_COMMIT_BRANCH == "dev" # Run this job when commits are pushed or merged to the dev branch
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none # Do not clone repo and skip 'before_script'
|
GIT_STRATEGY: none # Do not clone repo and skip 'before_script'
|
||||||
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/rsi/test"
|
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_BRANCH}"
|
||||||
script:
|
script:
|
||||||
- apk add zip
|
- apk add zip
|
||||||
- zip -rq mod.zip ./
|
- zip -rq mod.zip ./
|
||||||
- echo "${PACKAGE_REGISTRY_URL}"
|
- echo "${PACKAGE_REGISTRY_URL}"
|
||||||
|
- 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file About/About.xml "${PACKAGE_REGISTRY_URL}/About.xml"'
|
||||||
- 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file mod.zip "${PACKAGE_REGISTRY_URL}/rjw_sexperience_ideology.zip"'
|
- 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file mod.zip "${PACKAGE_REGISTRY_URL}/rjw_sexperience_ideology.zip"'
|
||||||
|
|
Loading…
Reference in a new issue