Skip to content

Commit

Permalink
publish on pypi. 2nd try
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeoLacruz committed Feb 19, 2024
1 parent 005957c commit baa2c29
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,32 +29,3 @@ jobs:
- name: Check style
run: |
flake8 . --max-line-length=100 --ignore=E731
publish:
# if: github.event_name == 'release' && github.event.action == 'published'
needs: [style-python]
name: 📦 Publish to PyPi
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/inventree-zebra-plugin
permissions:
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install build dependencies
run: pip install --upgrade wheel setuptools twine build

- name: Build pip package
run: python3 -m build

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit baa2c29

Please sign in to comment.