Debian Codegraph @

.github/workflows/cd.yml

raw
1 name: CD
2 on:
3 push:
4 tags: v*
5 pull_request:
6 paths:
7 - .github/workflows/cd.yml
8 jobs:
9 publish:
10 runs-on: ubuntu-latest
11 steps:
12 - name: Checkout Source
13 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14 - name: Setup Python
15 uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
16 with:
17 python-version: 3.x
18 - name: Install build dependencies
19 run: python -m pip install build wheel
20 - name: Build distributions
21 shell: bash -l {0}
22 run: python -m build
23 - name: Publish package to PyPI
24 if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
25 uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3
26 with:
27 user: __token__
28 password: ${{ secrets.pypi_token }}