Skip to content

Commit

Permalink
Added CI
Browse files Browse the repository at this point in the history
  • Loading branch information
integraledelebesgue committed Oct 3, 2024
1 parent 8145d8d commit 1558ebe
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build and store wheels

on: [push, pull_request]

jobs:
build:
name: Build wheels on ${{ matrix.os }}

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-14, macos-15]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.21.2

- name: Build wheels
run: python -m cibuildwheel --output-dir dist

- name: Store wheels
uses: actions/upload-artifact@v4
with:
name: distributions
path: ./dist/*.whl

publish:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/')

needs:
- build

runs-on: ubuntu-latest

environment:
name: pypi
url: https://test.pypi.org/p/mini-face-oxidized

permissions:
id-token: write

steps:
- name: Download all the wheels
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/

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

0 comments on commit 1558ebe

Please sign in to comment.