diff --git a/Jenkinsfile b/Jenkinsfile index b0694fc..c2235c5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,6 +5,9 @@ pipeline { args '-u root' } } + environment { + GITEA_CREDS = credentials('AMARILLO-JENKINS-GITEA-USER') + } stages { stage('Create virtual environment') { steps { @@ -25,9 +28,15 @@ pipeline { echo 'Testing' } } - stage('Deploy') { + stage('Build') { steps { - echo 'Deploying' + echo 'Building package' + sh 'python -m build' + } + } + stage('Publish package') { + steps { + sh 'python -m twine upload --repository gitea --username $GITEA_CREDS_USR --password $GITEA_CREDS_PSW ./dist/*' } } } diff --git a/pyproject.toml b/pyproject.toml index 861fb36..a9358b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "amarillo-core" -version = "0.0.5" +version = "0.0.6" dependencies = [ "fastapi[all]==0.104.0", "geopandas==0.14",