aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/release.yml
blob: 19212b7162b58003830408ad5c21108082c5adce (plain) (blame)
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
name: Release Python Package

on:
  release:
    types:
      - published

jobs:
  release:
    runs-on: ubuntu-22.04
    environment: Release
    steps:
    - uses: actions/checkout@v3
    - name: Set up Python
      uses: actions/setup-python@v4
      with:
        python-version: '3.12'
    - name: Install dependencies
      run: pip install setuptools==68.2.2 wheel==0.41.3 poetry==1.7.1
    - name: Build and publish
      run: |
        poetry build
        poetry publish
      env:
        POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}