Merge branch 'develop' of https://git.reslate.systems/ydeng/renamebycsv into develop
This commit is contained in:
commit
efe4855297
@ -1,21 +0,0 @@
|
|||||||
# .woodpecker.yml
|
|
||||||
pipeline:
|
|
||||||
install:
|
|
||||||
image: debian
|
|
||||||
commands:
|
|
||||||
- apt-get update
|
|
||||||
- apt-get install python3
|
|
||||||
- apt-get install python3-pip
|
|
||||||
- pip install build
|
|
||||||
- pip install pytest
|
|
||||||
- pip install setuptools
|
|
||||||
- pip install twine
|
|
||||||
build:
|
|
||||||
image: python
|
|
||||||
commands:
|
|
||||||
- python -m build
|
|
||||||
publish:
|
|
||||||
image: python
|
|
||||||
commands:
|
|
||||||
- pip -m twine upload --repository-url https://git.reslate.systems -u ${CI_NETRC_USERNAME} -p ${CI_NETRC_PASSWORD} --non-interactive --disable-progress-bar --verbose dist/*
|
|
||||||
|
|
26
Jenkinsfile
vendored
Normal file
26
Jenkinsfile
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
stages {
|
||||||
|
stage("install") {
|
||||||
|
steps {
|
||||||
|
sh 'conda env update --file environment.yml'
|
||||||
|
sh 'echo "conda activate renamebycsv" >> ~/.bashrc'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage("build") {
|
||||||
|
steps {
|
||||||
|
sh "python -m build"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage("publish") {
|
||||||
|
when {
|
||||||
|
branch '**/master'
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
withCredentials([usernamePassword(credentialsId: 'rs-git-package-registry-ydeng', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
|
||||||
|
sh "python -m twine upload --repository-url https://git.reslate.systems/api/packages/${USER}/pypi -u ${USER} -p ${PASS} --non-interactive --disable-progress-bar --verbose dist/*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
environment.yml
Normal file
11
environment.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
name: renamebycsv
|
||||||
|
channels:
|
||||||
|
- anaconda
|
||||||
|
- conda-forge
|
||||||
|
dependencies:
|
||||||
|
- build=0.7.0
|
||||||
|
- pytest=7.2.2
|
||||||
|
- python=3.11.3
|
||||||
|
- setuptools=67.6.1
|
||||||
|
- twine=4.0.2
|
||||||
|
- cryptography=38.0.4
|
Loading…
Reference in New Issue
Block a user