Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Commit bc82dce

Browse files
committed
Add github action for pypi release. Version 0.4.1
1 parent 31e37fb commit bc82dce

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.github/workflows/pypi_release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: PyPi Package Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
pypi_release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Code
13+
uses: actions/checkout@v3
14+
- name: Setup Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: "3.11"
18+
cache: pip
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -r requirements/requirements.txt
23+
- name: Build
24+
run: |
25+
pip install wheel
26+
python setup.py sdist bdist_wheel
27+
- name: Smoke Test
28+
run: |
29+
pip install dist/*.whl
30+
aicodebot version
31+
- name: Publish
32+
env:
33+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
34+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
35+
run: |
36+
pip install twine
37+
twine check dist/*
38+
twine upload dist/*

aicodebot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "0.4.0"
1+
version = "0.4.1"

0 commit comments

Comments
 (0)