From e96908ec2bbf129e09f07d1cd38ac5f0a28aecd0 Mon Sep 17 00:00:00 2001 From: pedohorse <13556996+pedohorse@users.noreply.github.com> Date: Tue, 9 Jan 2024 00:38:24 +0100 Subject: [PATCH] build job --- .github/workflows/pypi-pub.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/pypi-pub.yml diff --git a/.github/workflows/pypi-pub.yml b/.github/workflows/pypi-pub.yml new file mode 100644 index 00000000..1a4f7c3d --- /dev/null +++ b/.github/workflows/pypi-pub.yml @@ -0,0 +1,31 @@ +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 + 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