File: release.yml

package info (click to toggle)
python-resolvelib 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 16,564 kB
  • sloc: python: 2,467; javascript: 102; sh: 9; makefile: 3
file content (37 lines) | stat: -rw-r--r-- 822 bytes parent folder | download | duplicates (2)
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
name: Release

on:
  push:
    tags:
      - "*"

jobs:
  build-package:
    name: Build & inspect our package.
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - uses: hynek/build-and-inspect-python-package@v2

  release-pypi:
    name: Publish released package to pypi.org
    permissions:
      id-token: write
    environment:
      name: release
      url: https://pypi.org/project/resolvelib/${{ github.ref_name }}
    runs-on: ubuntu-latest
    needs: build-package

    steps:
      - name: Download packages built by build-and-inspect-python-package
        uses: actions/download-artifact@v4
        with:
          name: Packages
          path: dist

      - name: Upload package to PyPI
        uses: pypa/gh-action-pypi-publish@release/v1