fix(ci): Build package before openapi generation #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |