-
Notifications
You must be signed in to change notification settings - Fork 266
52 lines (45 loc) · 1.1 KB
/
python-publish.yml
File metadata and controls
52 lines (45 loc) · 1.1 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: python-pypi-publish
on:
push:
branches:
- main
tags:
- "*.*.*"
jobs:
release:
runs-on: ubuntu-latest
env:
PIP_REQUESTS_TIMEOUT: 100
environment:
name: pypi
url: https://pypi.org/p/graphframes-py
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: '11'
distribution: 'zulu'
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Set up Poetry
uses: snok/install-poetry@v1
with:
version: 2.1.3
virtualenvs-create: true
virtualenvs-in-project: false
installer-parallel: true
- name: Build GraphFrames python
working-directory: python
run: |
poetry build
- name: PyPi publish
if: startsWith(github.ref, 'refs/tags/')
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: python/dist