Update .gitlab-ci.yml file
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
image: python:latest
|
image: python:latest
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- deploy
|
||||||
|
|
||||||
build: # This job runs in the build stage, which runs first.
|
build: # This job runs in the build stage, which runs first.
|
||||||
|
stage: build
|
||||||
script:
|
script:
|
||||||
- pip install build twine
|
- pip install build twine
|
||||||
- mkdir build/src/AirwatchAPI/
|
- mkdir build/src/AirwatchAPI/
|
||||||
@@ -8,6 +13,7 @@ build: # This job runs in the build stage, which runs first.
|
|||||||
- cd build/
|
- cd build/
|
||||||
- python -m build
|
- python -m build
|
||||||
deploy:
|
deploy:
|
||||||
|
stage: deploy
|
||||||
variables:
|
variables:
|
||||||
TWINE_USERNAME: gitlab-ci-token
|
TWINE_USERNAME: gitlab-ci-token
|
||||||
TWINE_PASSWORD: $CI_JOB_TOKEN
|
TWINE_PASSWORD: $CI_JOB_TOKEN
|
||||||
|
|||||||
Reference in New Issue
Block a user