forked from databrickslabs/mosaic
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 949 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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/