Skip to content

Commit

Permalink
add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MahmoudNasser committed Jun 20, 2023
1 parent 8189cc8 commit 1557144
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish to PyPI.org
on:
release:
types: [published]
jobs:
pypi:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: python3 -m pip install --upgrade build && python3 -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{pypi-AgEIcHlwaS5vcmcCJGMyYTNjNmU4LTFhMjYtNDYzMy04MGJiLTNiYmE5MmEzZjRjMwACKlszLCJjNTIyN2MxOC04ZDY3LTQyNjgtYTA4Ni02MDdhNjVmN2MzNDgiXQAABiCsyqwx0r7qiHCz0-po11RGqqFwvA5b-YuuhotH3Sef-g}}
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,10 @@ import_heading_stdlib="Python Standard Library Imports"
import_heading_thirdparty="Other Third Party Imports"
import_heading_firstparty="First Party Imports"
import_heading_folder="Local Folder Imports"


[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]

0 comments on commit 1557144

Please sign in to comment.