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 656f2e4
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/pypi-pub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "PYPI publish"

on:
push:
tags: ["v*"]
pull_request:
branches: [ dev, master ]

jobs:
build:
runs-on: "ubuntu-latest"
strategy:
matrix:
build_thing:
- lifeblood
- lifeblood_viewer
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 ${{ matrix.build_thing }}
run: |
cd pkg_${{ matrix.build_thing }}
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_${{ matrix.build_thing }}
path: |
pkg_${{ matrix.build_thing }}/dist/*
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ build
dist
pkg_*/build
pkg_*/dist
pkg_*/src
**/otls/backup
**/houdini/houdini.project
dcc_plugins/houdini/otls/Driver-taskflow*
Expand Down
1 change: 1 addition & 0 deletions pkg_lifeblood/src/lifeblood
1 change: 1 addition & 0 deletions pkg_lifeblood_viewer/src/lifeblood_viewer

0 comments on commit 656f2e4

Please sign in to comment.