34 lines
800 B
YAML
34 lines
800 B
YAML
name: Build Package
|
|
run-name: Build Python Package
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: [ runner ]
|
|
needs: prepare
|
|
container: git.sh-edraft.de/sh-edraft.de/act-runner:latest
|
|
|
|
steps:
|
|
- name: Clone Repository
|
|
uses: https://github.com/actions/checkout@v3
|
|
with:
|
|
token: ${{ secrets.CI_ACCESS_TOKEN }}
|
|
|
|
- name: Download build version artifact
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: version
|
|
|
|
- name: Set version
|
|
run: |
|
|
sed -i -E "s/^version = \".*\"/version = \"$(cat version.txt)-dev\"/" pyproject.toml
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
pip install build
|
|
|
|
- name: Build Package
|
|
run: |
|
|
python -m build --sdist --wheel --outdir dist |