Skip to content

Commit

Permalink
Added release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eliyas5044 committed Jul 1, 2024
1 parent ea388fb commit bf30b2e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Upload to PyPI

on:
release:
types: [published]

jobs:
upload:
runs-on: ubuntu-latest

environment:
name: pypi.org
url: https://pypi.org/project/dxh-py/

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install build tools
run: python -m pip install --upgrade pip build

- name: Build distributions
run: python -m build --sdist --wheel --outdir dist/

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
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 @@ -3,7 +3,7 @@

setup(
name='dxh_py',
version='0.1.0',
version='0.0.1',
packages=find_packages(),
install_requires=[
'cookiecutter>=2.0.0'
Expand Down

0 comments on commit bf30b2e

Please sign in to comment.