Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish python package to pypi | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-n-publish: | |
name: Build project and publish to PyPI | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
# Used to authenticate to PyPI via OIDC and sign the release's artifacts with sigstore-python. | |
id-token: write | |
# Used to attach signing artifacts to the published release. | |
contents: write | |
strategy: | |
matrix: | |
python: [ 3.10.12 ] | |
numpy: [ 1.22.4 ] | |
gdal: [ 3.4.1 ] | |
spark: [ 3.4.1 ] | |
R: [ 4.2.2 ] | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
- name: build scala | |
uses: ./.github/actions/scala_build | |
- name: build python | |
uses: ./.github/actions/python_build | |
- name: Publish a Python distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
packages_dir: python/dist/ |