Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/upload_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ on:
required: false

jobs:
build:
build-n-publish:
name: Build and publish neatnet to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write # MANDATORY for trusted publishing to PyPI
contents: write # MANDATORY for the Github release action

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -28,6 +33,7 @@ jobs:

- name: Build source and wheel distributions
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade build twine
python -m build
twine check --strict dist/*
Expand All @@ -44,6 +50,3 @@ jobs:

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
Loading