Skip to content

Commit 68cd4dd

Browse files
committed
adding common build recipe for both conda and pypi builds
1 parent cfe029c commit 68cd4dd

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/httomolibgpu_pypi_publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
name: Upload Python Package to PyPI when Release is Created
1+
name: Upload Python Package to PyPI when "v" tag is pushed
22

3+
# Run the workflow whenever a tag beginning with `v` is pushed to any branch
34
on:
4-
release:
5-
types: [created]
5+
push:
6+
tags:
7+
- v*
68

79
jobs:
810
pypi-publish:

.github/workflows/httomolibgpu_version_tag.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
conda-upload-main:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
1212

1313
defaults:
1414
run:
@@ -21,11 +21,11 @@ jobs:
2121
fetch-depth: 0
2222
ref: ${{ github.ref_name }}
2323

24-
# setup Python 3.10
25-
- name: Setup Python 3.10
24+
# setup Python 3.11
25+
- name: Setup Python 3.11
2626
uses: actions/setup-python@v4
2727
with:
28-
python-version: '3.10'
28+
python-version: '3.11'
2929

3030
# install dependencies with conda
3131
- name: Install dependencies with conda

0 commit comments

Comments
 (0)