diff --git a/.github/workflows/pypi-pub.yml b/.github/workflows/pypi-pub.yml new file mode 100644 index 00000000..8814c4ef --- /dev/null +++ b/.github/workflows/pypi-pub.yml @@ -0,0 +1,33 @@ +name: "PYPI publish" + +on: + push: + tags: ["v*"] + pull_request: + branches: [ dev, master ] + +jobs: + build: + runs-on: "ubuntu-latest" + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip build + if [ -f requirements_tests.txt ]; then pip install -r requirements_tests.txt; fi + - name: build lifeblood + run: | + cd pkg_lifeblood + VER=${{ github.ref_name }} + VER=${VER:1} + VER="1.2.3" + sed -i "s/version = 0.3.0/version = $VER/g" setup.cfg + ./build_pypi.sh + - uses: actions/upload-artifact@master + with: + name: build_lifeblood + path: | + dist/* \ No newline at end of file