Skip to content

Add build targets for wheel and sdist in pyproject.toml #2

Add build targets for wheel and sdist in pyproject.toml

Add build targets for wheel and sdist in pyproject.toml #2

Workflow file for this run

name: On Push
#for every push on any branch
on:
push:
branches:
- '**'
permissions:
contents: write
packages: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all tags
- name: setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
- name: install python dependencies
run: |
python -m pip install --upgrade pip
pip install build pytest
pip install https://github.com/AntoineBuirey/builder/releases/download/1.0.1/builder-1.0.1-py3-none-any.whl
- name: build
run: builder -v -D build-package
- name: Upload package artifacts
uses: actions/upload-artifact@v4
with:
name: package-artifacts-${{ matrix.python-version }}
path: |
dist/*.tar.gz
dist/*.whl