mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +00:00
c057e79f17
These three packages were added to src/ but lacked the Makefile needed by common.mk to build distribution wheels, and the GitHub Actions workflow to publish them to PyPI. Adds make dist / make test / make qa targets and ci-*-pypi.yaml workflows matching the pattern used by ifcpatch, ifcclash, etc.
36 lines
803 B
YAML
36 lines
803 B
YAML
name: ci-ifcquery-pypi
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
activate:
|
|
runs-on: ubuntu-latest
|
|
if: |
|
|
github.repository == 'IfcOpenShell/IfcOpenShell'
|
|
steps:
|
|
- name: Set env
|
|
run: echo ok go
|
|
|
|
build:
|
|
needs: activate
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.11'
|
|
- name: Compile
|
|
run: |
|
|
pip install build
|
|
cd src/ifcquery &&
|
|
make dist IS_STABLE=TRUE
|
|
- name: Publish a Python distribution to PyPI
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
with:
|
|
user: __token__
|
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
packages_dir: src/ifcquery/dist
|