mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 19:27:10 +00:00
Add basic BCF pypi upload CI action. (#1701)
* Add basic pypi upload CI action. For now I propose a simple trigger using a commit tag "[bcf release]". I think this is just as well since we do not (yet) have an automatic versioning for the bcf package * add correct subfolder (point to bcf) to ci recipe
This commit is contained in:
committed by
GitHub
parent
a4b4c7b37c
commit
126bac462d
@@ -0,0 +1,38 @@
|
|||||||
|
name: ci-bcf
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
activate:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: |
|
||||||
|
github.repository == 'IfcOpenShell/IfcOpenShell' &&
|
||||||
|
contains(github.event.head_commit.message, '[bcf release]')
|
||||||
|
steps:
|
||||||
|
- run: echo ok go
|
||||||
|
upload:
|
||||||
|
needs: activate
|
||||||
|
name: Upload BCF package to Pypi
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: '3.x'
|
||||||
|
- name: Build package
|
||||||
|
run: |
|
||||||
|
cd src/bcf
|
||||||
|
pip install build
|
||||||
|
python -m build
|
||||||
|
- name: Publish package
|
||||||
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
with:
|
||||||
|
user: __token__
|
||||||
|
password: ${{ secrets.PYPI_TOKEN }}
|
||||||
|
packages_dir: src/bcf/dist
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user