Updated ci
This commit is contained in:
@@ -8,12 +8,17 @@ on:
|
||||
description: 'Suffix for version (z.B. "dev", "alpha", "beta")'
|
||||
required: false
|
||||
type: string
|
||||
working_directory:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: [ runner ]
|
||||
container: git.sh-edraft.de/sh-edraft.de/act-runner:latest
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ${{ inputs.working_directory }}
|
||||
steps:
|
||||
- name: Clone Repository
|
||||
uses: https://github.com/actions/checkout@v3
|
||||
@@ -24,15 +29,13 @@ jobs:
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: version
|
||||
path: .
|
||||
|
||||
- name: Set version
|
||||
run: |
|
||||
VERSION_SUFFIX="${{ inputs.version_suffix }}"
|
||||
if [ -n "$VERSION_SUFFIX" ]; then
|
||||
sed -i -E "s/^version = \".*\"/version = \"$(cat version.txt)-$VERSION_SUFFIX\"/" pyproject.toml
|
||||
else
|
||||
sed -i -E "s/^version = \".*\"/version = \"$(cat version.txt)\"/" pyproject.toml
|
||||
fi
|
||||
sed -i -E "s/^version = \".*\"/version = \"$(cat version.txt)\"/" pyproject.toml
|
||||
echo "Set version to $(cat version.txt)"
|
||||
cat pyproject.toml
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
@@ -40,7 +43,7 @@ jobs:
|
||||
|
||||
- name: Build Package
|
||||
run: |
|
||||
python -m build --sdist --wheel --outdir dist
|
||||
python -m build --outdir dist
|
||||
|
||||
- name: Login to registry git.sh-edraft.de
|
||||
uses: https://github.com/docker/login-action@v1
|
||||
|
||||
Reference in New Issue
Block a user