File: publish.yaml

package info (click to toggle)
pytouchlinesl 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 532 kB
  • sloc: python: 758; makefile: 2
file content (41 lines) | stat: -rw-r--r-- 781 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
name: Publish

on:
  push:
    tags:
      - "*"

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  tests:
    uses: ./.github/workflows/_test.yaml

  publish:
    name: Build and Publish to PyPI
    runs-on: ubuntu-latest
    needs:
      - tests

    environment:
      name: pypi
      url: https://pypi.org/p/pytouchlinesl
    permissions:
      id-token: write

    steps:
      - name: Checkout the code
        uses: actions/checkout@v6

      - name: Install `uv`
        run: |
          curl -LsSf https://astral.sh/uv/install.sh | sh

      - name: Build the package
        run: |
          uvx --from build pyproject-build --installer uv

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