fix CI/CD workflows: direct git clone and version extraction from setup.py
This commit is contained in:
parent
d6d2d7a890
commit
13c2dbc075
2 changed files with 6 additions and 6 deletions
|
|
@ -58,8 +58,11 @@ jobs:
|
|||
|
||||
- name: Build Debian package
|
||||
run: |
|
||||
# Get version from setup.py instead of importing module
|
||||
VERSION=$(python3 -c "import re; print(re.search(r'version=[\"\']([^\"\']+)[\"\']', open('setup.py').read()).group(1))")
|
||||
echo "Building version: $VERSION"
|
||||
|
||||
# Update changelog with current version
|
||||
VERSION=$(python3 -c "import deb_mock; print(deb_mock.__version__)")
|
||||
dch --newversion "$VERSION-1" --distribution unstable "Build from CI/CD"
|
||||
|
||||
# Build the package
|
||||
|
|
|
|||
|
|
@ -13,11 +13,8 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout code
|
||||
run: |
|
||||
git clone https://git.raines.xyz/robojerk/deb-mock.git /tmp/deb-mock
|
||||
# Copy all files including hidden ones
|
||||
cp -r /tmp/deb-mock/* .
|
||||
cp -r /tmp/deb-mock/.gitignore . 2>/dev/null || true
|
||||
cp -r /tmp/deb-mock/.forgejo . 2>/dev/null || true
|
||||
# Clone directly to current directory
|
||||
git clone https://git.raines.xyz/robojerk/deb-mock.git .
|
||||
# Verify all files are copied
|
||||
echo "Checking repository contents:"
|
||||
ls -la
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue