Skip to content

Commit

Permalink
Merge pull request #23 from lmeilibr/main
Browse files Browse the repository at this point in the history
new pypi build script
  • Loading branch information
lmeilibr authored Aug 8, 2023
2 parents 5c11967 + e9aa4d6 commit c957049
Showing 1 changed file with 24 additions and 15 deletions.
39 changes: 24 additions & 15 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,31 @@ on:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 PyPI
runs-on: ubuntu-22.04
permissions:
id-token: write

steps:
- uses: actions/checkout@master
- name: Set up Python
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.7'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
python-version: "3.10"
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit c957049

Please sign in to comment.