This commit is contained in:
21
.gitea/workflows/build.yml
Normal file
21
.gitea/workflows/build.yml
Normal 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/*
|
@@ -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
|
|
||||||
|
Reference in New Issue
Block a user