-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 1.03 KB
/
client-py.yaml
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: Build and Publish
on:
push:
branches:
- main
#paths:
#- "packages/client-py/**"
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v2
with:
python-version: 3.8
# NB: we use pyproject.toml so we can straight use the build command
- run: python3 -m pip install --upgrade build twine bump-my-version
working-directory: ./packages/client-py
- name: Bump version
run: bump-my-version bump patch
working-directory: ./packages/client-py
- run: python3 -m build
working-directory: ./packages/client-py
- run: python3 -m twine upload --repository pypi dist/*
working-directory: ./packages/client-py
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API }}
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Bump version [skip ci]"