-
Notifications
You must be signed in to change notification settings - Fork 41
43 lines (36 loc) · 963 Bytes
/
release.yml
File metadata and controls
43 lines (36 loc) · 963 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
41
42
43
---
name: Release
on:
push:
tags:
- v*.*.*
jobs:
wait-for-ci:
name: Wait for CI
runs-on: ubuntu-latest
steps:
- name: Wait for CI to pass
uses: lewagon/wait-on-check-action@v1.7.0
with:
ref: ${{ github.sha }}
running-workflow-name: Wait for CI
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
publish:
name: Publish to PyPI
needs: wait-for-ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Set up Poetry
uses: abatilo/actions-poetry@v4
with:
poetry-version: '1.4.1'
- name: Install dependencies
run: poetry install --without test
- name: Publish distribution to PyPI
run: poetry publish --build -u __token__ -p '${{ secrets.PYPI_API_TOKEN }}'