build file

[feat] added build file for onedev
[fix] remove check yaml
This commit is contained in:
Adwaith Rajesh 2025-08-09 16:18:36 +05:30
parent e5c0187e31
commit 829999cc60
Signed by: adwaith-rajesh
GPG Key ID: 07AE7AA27444C4DB
2 changed files with 35 additions and 1 deletions

35
.onedev-buildspec.yml Normal file
View File

@ -0,0 +1,35 @@
version: 39
jobs:
- name: Upload to Pypi
steps:
- !CheckoutStep
name: Checkout Code
cloneCredential: !DefaultCredential {}
withLfs: false
withSubmodules: false
cloneDepth: 1
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !CommandStep
name: Publish to Pypi
runInContainer: true
image: python:3.12-bullseye
interpreter: !DefaultInterpreter
commands: |
cat << EOF > $HOME/.pypirc
[pypi]
username=__token__
password=@secret:access-token@
EOF
pip3 install build twine
python3 -m build
python3 -m twine upload dist/*
useTTY: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
triggers:
- !TagCreateTrigger
branches: dev
retryCondition: never
maxRetries: 3
retryDelay: 30
timeout: 14400

View File

@ -4,7 +4,6 @@ repos:
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: debug-statements
- id: double-quote-string-fixer
- id: name-tests-test