-
Notifications
You must be signed in to change notification settings - Fork 1.3k
41 lines (37 loc) · 1.24 KB
/
publish_python_sdk.yml
File metadata and controls
41 lines (37 loc) · 1.24 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
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) -- only edit if you know what you are doing'
required: false
token:
description: 'Personal Access Token'
required: true
default: ""
type: string
jobs:
get-version:
uses: ./.github/workflows/get_semantic_release_version.yaml
with:
custom_version: ${{ github.event.inputs.custom_version }}
token: ${{ github.event.inputs.token }}
build_wheels:
uses: ./.github/workflows/build_wheels.yml
needs: get-version
with:
release_version: ${{ needs.get-version.outputs.release_version }}
highest_semver_tag: ${{ needs.get-version.outputs.highest_semver_tag }}
publish-python-sdk:
if: github.repository == 'feast-dev/feast'
runs-on: ubuntu-latest
needs: [ get-version, build_wheels ]
steps:
- uses: actions/download-artifact@v4.1.7
with:
name: python-wheels
path: dist
- uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}