-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.04 KB
/
bump_version.yml
File metadata and controls
48 lines (41 loc) · 1.04 KB
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
42
43
44
45
46
47
48
name: Bump version and publish
on:
workflow_dispatch:
inputs:
bump-type:
description: "Bump type"
required: true
default: "patch"
type: choice
options:
- major
- minor
- patch
jobs:
bump-and-publish:
name: Bump version and publish
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Bump version
id: bump
uses: callowayproject/bump-my-version@master
env:
BUMPVERSION_TAG: "true"
with:
args: ${{ inputs.bump-type }}
- name: Check
if: steps.bump.outputs.bumped == 'false'
run: |
echo "Version was not bumped"
exit 1
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Build package
run: uv build --wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}