Skip to content

Commit

Permalink
add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
nioperas06 committed Feb 20, 2023
1 parent c8cb785 commit e0d8853
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 4 deletions.
52 changes: 49 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,61 @@
name: Publish to PyPI
name: Publishing to Pypi

on:
release:
types: [published]

jobs:
build:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
[
"3.8",
"3.9",
"3.10"
]

steps:
- uses: actions/checkout@v2

- name: Publish a Python distribution to PyPI
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[test]"
- name: Run Tests
run: |
pytest
build-n-publish:
name: Build and publish
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setuptools.setup(
name="kkiapay",
version="0.0.5",
version="0.0.6",
author="Junior Gantin",
author_email="[email protected]",
description="Community-driven Admin KkiaPay Sdk for Python",
Expand Down

0 comments on commit e0d8853

Please sign in to comment.