File: publish.yml

package info (click to toggle)
python-tatsu 5.17.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,516 kB
  • sloc: python: 13,185; makefile: 127
file content (35 lines) | stat: -rw-r--r-- 786 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
name: publish to pypi

on:
  # Setting it to an empty block removes all manual inputs
  workflow_dispatch:

jobs:
  publish:
    runs-on: ubuntu-latest
    environment:
      name: pypi
      url: https://pypi.org/p/tatsu
    permissions:
      # CRITICAL: This allows the runner to request the OIDC token
      id-token: write
      contents: read

    steps:
      - uses: actions/checkout@v4

      - name: install uv and hatch
        run: |
          curl -LsSf https://astral.sh/uv/install.sh | sh
          uv tool install hatch
          uv tool install gh

      - name: build
        run: uvx hatch build

      - name: publish
        uses: pypa/gh-action-pypi-publish@release/v1
        with:
          verbose: true
          print-hash: true
          skip-existing: true