Skip to content

Commit 2627e49

Browse files
authored
Merge pull request #1 from PDAL/gha-release
add dist stuff to gha
2 parents 012cd0b + 0eaf243 commit 2627e49

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,40 @@ jobs:
4646
pdal --drivers
4747
$PDAL_DRIVER_PATH/pdal_filters_python_test$EXT
4848
$PDAL_DRIVER_PATH/pdal_io_numpy_test$EXT
49+
50+
dist:
51+
name: Distribution
52+
needs: [build]
53+
54+
runs-on: ${{ matrix.os }}
55+
strategy:
56+
fail-fast: true
57+
matrix:
58+
os: ['ubuntu-latest']
59+
python-version: ['3.9']
60+
61+
steps:
62+
- uses: actions/checkout@v2
63+
- uses: conda-incubator/setup-miniconda@v2
64+
with:
65+
channels: conda-forge
66+
python-version: ${{ matrix.python-version }}
67+
mamba-version: "*"
68+
69+
- name: Dependencies
70+
shell: bash -l {0}
71+
run: mamba install --yes --quiet -c conda-forge scikit-build numpy python=${{ matrix.python-version }} pybind11 pdal
72+
73+
- name: sdist
74+
shell: bash -l {0}
75+
run: |
76+
python setup.py sdist
77+
ls dist
78+
79+
- uses: pypa/gh-action-pypi-publish@master
80+
name: Publish package
81+
if: github.event_name == 'release' && github.event.action == 'published'
82+
with:
83+
user: __token__
84+
password: ${{ secrets.pypi_token }}
85+
packages_dir: ./dist

0 commit comments

Comments
 (0)