-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (30 loc) · 902 Bytes
/
publish-2-pypi.yaml
File metadata and controls
36 lines (30 loc) · 902 Bytes
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
name: Publish to PyPI
on:
release:
types: [published]
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/llama-stack-provider-trustyai-fms
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip' # Speed up builds
- run: |
python -m pip install --upgrade pip build
- run: python -m build
- name: Verify build outputs
run: |
ls -la dist/
test -f dist/*.tar.gz && echo "Source distribution created"
test -f dist/*.whl && echo "Wheel distribution created"
- uses: pypa/gh-action-pypi-publish@v1.10.3 # Pinned version
with:
publish-oidc: true