-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 918 Bytes
/
Copy pathrelease.yml
File metadata and controls
40 lines (33 loc) · 918 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
37
38
39
40
name: Release LazyOps on PyPI
on:
workflow_dispatch:
workflow_run:
workflows: ["E2E Tests"]
branches: [main]
types:
- completed
jobs:
pypi:
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
name: Publish to PyPI
runs-on: ubuntu-latest
# Environment and permissions trusted publishing.
environment:
# Create this environment in the GitHub repository under Settings -> Environments
name: pypi
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v5
- name: "Set up Python"
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Build
run: uv build
- name: Publish
run: uv publish