File: release.yml

package info (click to toggle)
python-picnic-api2 1.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 232 kB
  • sloc: python: 949; makefile: 3
file content (49 lines) | stat: -rw-r--r-- 1,066 bytes parent folder | download
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
44
45
46
47
48
49
name: Release to PyPi
on: [workflow_dispatch]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v6
  
    - name: Set up Python 3.13
      uses: actions/setup-python@v6
      with:
        python-version: 3.13
  
    - name: Install uv 0.6.6
      run: |
        python -m ensurepip
        python -m pip install --upgrade pip
        python -m pip install uv==0.6.6
  
    - name: Install dependencies
      shell: bash
      run: uv sync
  
    - name: Build package
      shell: bash
      run: uv build

    - name: Upload artifacts
      uses: actions/upload-artifact@v6
      with:
        name: release-dists
        path: dist/
  pypi-publish:
    runs-on: ubuntu-latest
    environment: pypi
    needs:
      - build
    permissions:
      id-token: write

    steps:
      - name: Retrieve release distributions
        uses: actions/download-artifact@v5
        with:
          name: release-dists
          path: dist/

      - name: Publish release distributions to PyPI
        uses: pypa/gh-action-pypi-publish@v1.13.0