mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +00:00
117cb1ba5a
Though there are no particular known issues with https://github.com/ortega2247/pypi-upload-action we've used before, but it wasn't updating for 5 years now, so it's better to switch to official PyPA workflow. Args for workflow seem to be exactly the same, so it's just a drop-in replacement.
36 lines
930 B
YAML
36 lines
930 B
YAML
name: ci-bsdd-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@v2
|
|
- uses: actions/setup-python@v2 # https://github.com/actions/setup-python
|
|
with:
|
|
python-version: '3.11' # Version range or exact version of a Python version to use, using SemVer's version range syntax
|
|
- name: Compile
|
|
run: |
|
|
pip install build
|
|
cd src/bsdd &&
|
|
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/bsdd/dist
|