cicd
This commit is contained in:
parent
809ec5e05a
commit
a17c552b66
3 changed files with 11 additions and 14 deletions
|
|
@ -5,7 +5,7 @@ stages:
|
|||
|
||||
build:
|
||||
stage: Build
|
||||
image: electronuserland/builder:wine
|
||||
image: electronuserland/builder
|
||||
before_script:
|
||||
- yarn
|
||||
script:
|
||||
|
|
@ -25,7 +25,7 @@ build:
|
|||
- main
|
||||
|
||||
variables:
|
||||
WIN_BINARY: '${APPNAME}-${VERSION}.exe'
|
||||
BINARY: '${APPNAME}-${VERSION}.exe'
|
||||
PACKAGE_REGISTRY_URL: '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${APPNAME}/${VERSION}'
|
||||
|
||||
upload:
|
||||
|
|
@ -38,7 +38,7 @@ upload:
|
|||
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
|
||||
script:
|
||||
- 'curl --header "JOB-TOKEN: $CI_DEPLOY_PASSWORD" --upload-file "./dist/${WIN_BINARY}" "${PACKAGE_REGISTRY_URL}/${WIN_BINARY}"'
|
||||
- 'curl --header "JOB-TOKEN: $CI_DEPLOY_PASSWORD" --upload-file "./dist/${BINARY}" "${PACKAGE_REGISTRY_URL}/${BINARY}"'
|
||||
|
||||
auto-release-master:
|
||||
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 \
|
||||
--description 'Created using the release-cli. $CI_COMMIT_TITLE' --ref $CI_COMMIT_SHA \
|
||||
--assets-link "{\"name\":\"${APPNAME}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${WIN_BINARY}\"}"
|
||||
--assets-link "{\"name\":\"${APPNAME}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${BINARY}\"}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue