-
Notifications
You must be signed in to change notification settings - Fork 1.3k
69 lines (65 loc) · 2.22 KB
/
Copy pathpublish_python_sdk.yml
File metadata and controls
69 lines (65 loc) · 2.22 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: publish python sdk
on:
workflow_dispatch: # Allows manual trigger of the workflow
inputs:
custom_version: # Optional input for a custom version
description: 'Custom version to publish (e.g., v1.2.3 or v1.2.3.dev4) -- only edit if you know what you are doing'
required: false
type: string
checkout_ref:
description: 'Git ref to checkout before building wheels. Defaults to the release version.'
required: false
type: string
build_docker_images:
description: 'Build Docker images as part of release verification.'
required: true
default: true
type: boolean
token:
description: 'Personal Access Token'
required: true
default: ""
type: string
workflow_call: # Allows trigger of the workflow from another workflow
inputs:
custom_version: # Optional input for a custom version
description: 'Custom version to publish (e.g., v1.2.3 or v1.2.3.dev4) -- only edit if you know what you are doing'
required: false
type: string
checkout_ref:
description: 'Git ref to checkout before building wheels. Defaults to the release version.'
required: false
type: string
build_docker_images:
description: 'Build Docker images as part of release verification.'
required: false
default: true
type: boolean
token:
description: 'Personal Access Token'
required: true
default: ""
type: string
jobs:
build-wheels:
uses: ./.github/workflows/build_wheels.yml
secrets: inherit
with:
custom_version: ${{ inputs.custom_version }}
checkout_ref: ${{ inputs.checkout_ref }}
build_docker_images: ${{ inputs.build_docker_images }}
token: ${{ inputs.token }}
publish-python-sdk:
if: github.repository == 'feast-dev/feast'
runs-on: ubuntu-latest
needs: [ build-wheels ]
steps:
- uses: actions/download-artifact@v4.1.7
with:
name: python-wheels
path: dist
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}