Overgang gitea action
All checks were successful
build / build (push) Successful in 1m44s

This commit is contained in:
2024-02-18 22:08:14 +01:00
parent 26f1caa60e
commit cec151e564
2 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
---
name: build
on:
- push
jobs:
build:
runs-on: fedora-builder
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Build package
run: python3 -m build
- name: run tox
run: tox
- name: Upload na pypi
env:
TWINE_USERNAME: ${{ secret.PYPI_USER }}
TWINE_PASSWORD: ${{ secret.PYPI_PASSWORD }}
if: github.ref_type == 'tag'
run: python3 -m twine upload dist/*

View File

@@ -2,9 +2,10 @@
set -e set -e
yamllint .gitea/workflows/*yml
VERSION=$(grep version setup.cfg | sed 's/.*= *//') VERSION=$(grep version setup.cfg | sed 's/.*= *//')
sed -i "s/^__version__ = .*/__version__ = '${VERSION}'/" src/lmwsip/__init__.py sed -i "s/^__version__ = .*/__version__ = '${VERSION}'/" src/lmwsip/__init__.py
git add src/lmwsip/__init__.py git add src/lmwsip/__init__.py
tox tox
yamllint .drone.yml