Skip to content

Commit

Permalink
Working on Build PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMandich committed Jun 24, 2024
1 parent f646cbd commit 636dca9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/python-public-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,27 @@ on:
release:
types: [released]


jobs:
pypi-publish:
name: upload release to PyPI
deploy:

runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
# retrieve your distributions here
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build
run: |
python setup.py sdist
# retrieve your distributions here
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name="PyFlume",
version="0.8.6",
version="0.8.7",
author="ChrisMandich",
author_email="Chris@Mandich.net",
description="Package to integrate with Flume Sensor",
Expand Down

0 comments on commit 636dca9

Please sign in to comment.