Skip to content

Commit

Permalink
build job
Browse files Browse the repository at this point in the history
  • Loading branch information
pedohorse committed Jan 9, 2024
1 parent 5cfd38f commit aa66306
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pypi-pub.yml
Original file line number Diff line number Diff line change
@@ -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/*

0 comments on commit aa66306

Please sign in to comment.