-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (38 loc) · 1.11 KB
/
myaction.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
name: Automated Version Bump
on:
push:
branches:
- main
jobs:
bump:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.9 🐍
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Checkout code
uses: actions/checkout@v2
- name: Install required packages
run: |
python -m pip install --upgrade pip
pip install toml
- name: Automated Version Bump
run: python .github/bump_version.py
- name: Commit and push version bump
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add setup.cfg pyproject.toml
git commit -m "Automated Version Bump" -a
git push
- name: Install pypa/build
run: |
python -m pip install build
- name: Build the package
run: |
python -m build
- name: pypi-publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}