cicd
This commit is contained in:
parent
b566923896
commit
8597d4899a
1 changed files with 3 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ build:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
BINARY: '${APPNAME}-${VERSION}.exe'
|
PACKAGE: '${APPNAME}-${VERSION}.dmg'
|
||||||
PACKAGE_REGISTRY_URL: '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${APPNAME}/${VERSION}'
|
PACKAGE_REGISTRY_URL: '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${APPNAME}/${VERSION}'
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
|
|
@ -38,7 +38,7 @@ upload:
|
||||||
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 == $CI_DEFAULT_BRANCH # Run this job when when commits are pushed to the default branch
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when when commits are pushed to the default branch
|
||||||
script:
|
script:
|
||||||
- 'curl --header "JOB-TOKEN: $CI_DEPLOY_PASSWORD" --upload-file "./dist/${BINARY}" "${PACKAGE_REGISTRY_URL}/${BINARY}"'
|
- 'curl --header "JOB-TOKEN: $CI_DEPLOY_PASSWORD" --upload-file "./dist_electron/${PACKAGE}" "${PACKAGE_REGISTRY_URL}/${PACKAGE}"'
|
||||||
|
|
||||||
auto-release-master:
|
auto-release-master:
|
||||||
image: registry.gitlab.com/gitlab-org/release-cli
|
image: registry.gitlab.com/gitlab-org/release-cli
|
||||||
|
|
@ -57,4 +57,4 @@ auto-release-master:
|
||||||
- |
|
- |
|
||||||
release-cli create --name "Release $VERSION" --tag-name v$VERSION \
|
release-cli create --name "Release $VERSION" --tag-name v$VERSION \
|
||||||
--description 'Created using the release-cli. $CI_COMMIT_TITLE' --ref $CI_COMMIT_SHA \
|
--description 'Created using the release-cli. $CI_COMMIT_TITLE' --ref $CI_COMMIT_SHA \
|
||||||
--assets-link "{\"name\":\"${APPNAME}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${BINARY}\"}"
|
--assets-link "{\"name\":\"${APPNAME}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${PACKAGE}\"}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue