-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (35 loc) · 948 Bytes
/
release.yml
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
name: Upload Python Package
on:
workflow_dispatch:
inputs:
bump-type:
description: 'Bump type'
required: true
default: 'patch'
options:
- patch
- minor
- major
permissions:
contents: write
pull-requests: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- name: install dependencies
uses: ouhammmourachid/poetry-install@v2
- name: bump version
uses: ouhammmourachid/bumpversion-action@v3
with:
bump-type: ${{ github.event.inputs.bump-type }}
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Deploy to PyPI
uses: ./.github/actions/build-deploy
with:
pypi-token: ${{ secrets.PYPI_API_TOKEN }}