ci: fix lowercase 'w' in env name
This commit is contained in:
parent
51ed30634d
commit
21c3be56bc
64
.drone.yml
64
.drone.yml
|
@ -5,46 +5,46 @@ type: docker
|
|||
name: default
|
||||
|
||||
steps:
|
||||
# - name: create virtual env
|
||||
# image: python:3.11-alpine
|
||||
# commands:
|
||||
# - python -m venv .venv
|
||||
- name: create virtual env
|
||||
image: python:3.11-alpine
|
||||
commands:
|
||||
- python -m venv .venv
|
||||
|
||||
# - name: install
|
||||
# image: python:3.11-alpine
|
||||
# commands:
|
||||
# - &path
|
||||
# export PATH="$$DRONE_WORKSPACE/.venv/bin:$$PATH"
|
||||
# - echo $$PATH
|
||||
# - which pip
|
||||
# - pip install black build flake8 isort twine
|
||||
- name: install
|
||||
image: python:3.11-alpine
|
||||
commands:
|
||||
- &path
|
||||
export PATH="$$DRONE_WORKSPACE/.venv/bin:$$PATH"
|
||||
- echo $$PATH
|
||||
- which pip
|
||||
- pip install black build flake8 isort twine
|
||||
|
||||
# - name: check style
|
||||
# image: python:3.11-alpine
|
||||
# commands:
|
||||
# - *path
|
||||
# - black --check .
|
||||
# - isort -c .
|
||||
# - flake8 .
|
||||
- name: check style
|
||||
image: python:3.11-alpine
|
||||
commands:
|
||||
- *path
|
||||
- black --check .
|
||||
- isort -c .
|
||||
- flake8 .
|
||||
|
||||
# - name: build
|
||||
# image: python:3.11-alpine
|
||||
# commands:
|
||||
# - *path
|
||||
# - python -m build
|
||||
- name: build
|
||||
image: python:3.11-alpine
|
||||
commands:
|
||||
- *path
|
||||
- python -m build
|
||||
|
||||
- name: publish
|
||||
image: python:3.11-alpine
|
||||
commands:
|
||||
- echo $$TWINE_PASSWORD
|
||||
# - *path
|
||||
# - keyring --disable
|
||||
# - twine upload --non-interactive --repository-url https://git.luj0ga.de/api/packages/kontakt/pypi -u '' dist/*
|
||||
- *path
|
||||
- keyring --disable
|
||||
- twine upload --non-interactive --repository-url https://git.luj0ga.de/api/packages/kontakt/pypi -u '' dist/*
|
||||
environment:
|
||||
TwINE_PASSWORD: 'debug'
|
||||
# when:
|
||||
# event:
|
||||
# - tag
|
||||
TWINE_PASSWORD:
|
||||
from_secret: repo_token
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
trigger:
|
||||
event:
|
||||
|
|
Loading…
Reference in New Issue