Skip to content

fix(ci): Build package before openapi generation #10

fix(ci): Build package before openapi generation

fix(ci): Build package before openapi generation #10

Workflow file for this run

name: Create and publish Python package
on:
push:
jobs:
build:
runs-on:
- ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-tags: true
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Build wheel
working-directory: python
run: pip wheel --no-deps -w dist .
- uses: actions/upload-artifact@v4
with:
path: python/dist/*.whl
# TODO: Uncomment me when GB PyPI account is setup
# publish:
# name: Upload release to PyPI
# runs-on:
# - gb-arc-staging
# environment:
# name: pypi
# url: https://pypi.org/p/greenbids-tailor
# permissions:
# id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
# steps:
# - uses: actions/download-artifact@v4
# with:
# path: dist/
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1