Skip to content

Commit

Permalink
pypi publish updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bnb32 committed Apr 25, 2024
1 parent becb1fd commit 6d5c93a
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,19 @@ jobs:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.REST2_SSH_KEY }}
${{ secrets.MLCLOUDS_SSH_KEY }}
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
- name: Install dependencies and Build
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
pip install setuptools build
python -m build --sdist --wheel --outdir dist/ .
- name: Check distribution files
run: |
python setup.py sdist bdist_wheel
twine --verbose upload dist/*
pip install twine
twine check dist/*
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 6d5c93a

Please sign in to comment.