-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (37 loc) · 1.11 KB
/
pypi-deploy.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
44
45
46
47
48
49
50
51
52
name: PyPi Deploy
on:
push:
branches:
- master
jobs:
deploy:
name: PyPi Deploy
runs-on: ubuntu-latest
environment: master
env:
PYPI_USER: ${{ secrets.PYPI_USER }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install poetry
run: pip install "poetry<=1.6"
- name: Skip virtualenv creation
run: poetry config virtualenvs.create false
- name: Configure PyPi credentials
run: poetry config http-basic.pypi ${{ env.PYPI_USER }} ${{ env.PYPI_PASSWORD }}
- name: Bump Version
run: poetry version patch
- name: Git set email
run: git config --global user.email "[email protected]"
- name: Git set name
run: git config --global user.name "GitHub Bot"
- name: Commit
run: git commit -m "[skip ci] auto-bump-version" -a
- name: Push
run: git push
- name: Deploy to PyPi
run: poetry --build publish