@@ -191,11 +191,20 @@ jobs:
191191 # Bump version to next alpha version
192192 echo "Bump to the next version"
193193 bumpver update -n -t alpha --no-commit
194+ - run :
195+ name : Generate SBOM
196+ command : |
197+ curl -sSfL https://get.anchore.io/syft | sudo sh -s -- -b /usr/local/bin
198+ export SYFT_SOURCE_VERSION=$(python -c "import lunes_cms; print(lunes_cms.__version__)")
199+ export SYFT_SOURCE_NAME="integreat-cms"
200+ export SYFT_FORMAT_SPDX_JSON_PRETTY=true
201+ syft scan . -o spdx-json=integreat_cms/_manifest/spdx_2.2/manifest.spdx.json
194202 - persist_to_workspace :
195203 root : .
196204 paths :
197- - setup.cfg
205+ - pyproject.toml
198206 - lunes_cms/__init__.py
207+ - lunes_cms/_manifest
199208 bump-version :
200209 docker :
201210 - image : cimg/python:3.11
@@ -236,6 +245,16 @@ jobs:
236245 # Amend to bump version commit
237246 git add CHANGELOG.md
238247 git commit --amend --no-edit
248+ - run :
249+ name : Generate SBOM
250+ command : |
251+ curl -sSfL https://get.anchore.io/syft | sudo sh -s -- -b /usr/local/bin
252+ export SYFT_SOURCE_VERSION=$(python -c "import lunes_cms; print(lunes_cms.__version__)")
253+ export SYFT_SOURCE_NAME="integreat-cms"
254+ export SYFT_FORMAT_SPDX_JSON_PRETTY=true
255+ syft scan . -o spdx-json=integreat_cms/_manifest/spdx_2.2/manifest.spdx.json
256+ git add lunes_cms/_manifest
257+ git commit --amend --no-edit
239258 - run :
240259 name : Tag and push commit
241260 command : |
@@ -260,8 +279,9 @@ jobs:
260279 name : Build lunes-cms package
261280 command : |
262281 source .venv/bin/activate
263- pip install wheel
264- python setup.py sdist bdist_wheel
282+ pip install .
283+ python -m build --sdist .
284+ python -m build --wheel .
265285 - persist_to_workspace :
266286 root : .
267287 paths :
@@ -284,6 +304,7 @@ jobs:
284304 command : |
285305 source .venv/bin/activate
286306 pip install twine
307+ ls -lh ./dist/*
287308 twine upload --non-interactive --verbose ./dist/lunes*.tar.gz
288309 create-release :
289310 docker :
0 commit comments