Skip to content

Commit

Permalink
Merge pull request #1 from PDAL/gha-release
Browse files Browse the repository at this point in the history
add dist stuff to gha
  • Loading branch information
hobu authored Nov 22, 2021
2 parents 012cd0b + 0eaf243 commit 2627e49
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,40 @@ jobs:
pdal --drivers
$PDAL_DRIVER_PATH/pdal_filters_python_test$EXT
$PDAL_DRIVER_PATH/pdal_io_numpy_test$EXT
dist:
name: Distribution
needs: [build]

runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: ['ubuntu-latest']
python-version: ['3.9']

steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
channels: conda-forge
python-version: ${{ matrix.python-version }}
mamba-version: "*"

- name: Dependencies
shell: bash -l {0}
run: mamba install --yes --quiet -c conda-forge scikit-build numpy python=${{ matrix.python-version }} pybind11 pdal

- name: sdist
shell: bash -l {0}
run: |
python setup.py sdist
ls dist
- uses: pypa/gh-action-pypi-publish@master
name: Publish package
if: github.event_name == 'release' && github.event.action == 'published'
with:
user: __token__
password: ${{ secrets.pypi_token }}
packages_dir: ./dist

0 comments on commit 2627e49

Please sign in to comment.