Skip to content

Commit

Permalink
build no wiwi
Browse files Browse the repository at this point in the history
  • Loading branch information
fedebenelli committed Jan 14, 2025
1 parent 44e8142 commit a867eda
Showing 1 changed file with 63 additions and 1 deletion.
64 changes: 63 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,66 @@ jobs:
- name: Install tox
run: pip install tox tox-gh-actions
- name: Test with tox
run: tox -r
run: tox -r

build:
name: Build distribution 📦
needs:
- test-linux
- test-windows
- test-macos

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: ['3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/

publish_to_pypi:
name: Publish Python 🐍 wheels 🛞 to PyPI
if: github.event_name == 'release'
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/ugropy
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
path: dist/
pattern: ugropy-*
merge-multiple: true
- run: ls -R dist
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true

0 comments on commit a867eda

Please sign in to comment.