@@ -2,11 +2,9 @@ name: Build AltoTrader Package
22
33on :
44 push :
5- branches : [ "main", " development" ]
5+ branches : [ "development" ] # Only pushes to development
66 pull_request :
7- branches : [ "main", "development" ]
8- release :
9- types : [ created ]
7+ branches : [ "development" ] # Only PRs targeting development
108
119jobs :
1210 test :
@@ -40,30 +38,20 @@ jobs:
4038 python -m pip install --upgrade pip
4139 pip install build
4240
43- # DEV-Branch: Version mit "-dev" suffix
44- - name : Create .dev package version
45- if : github.ref == 'refs/heads/development'
41+ # Add .dev suffix (since we only run for development)
42+ - name : Add dev version suffix
4643 run : |
47- echo "DEV-Build, add '- dev' to package version..."
48- sed -i 's/^version = .*/& .dev/' pyproject.toml
44+ echo "Adding . dev to package version..."
45+ sed -i 's/^version = "\(.*\)"/version = "\1 .dev" /' pyproject.toml
4946
5047 - name : Build package
5148 run : |
5249 python -m build
53- ls -la dist/ # Verify build output
54-
55- - name : Set artifact name
56- id : set-artifact-name
57- run : |
58- if [ "${{ github.ref }}" == "refs/heads/development" ]; then
59- echo "ARTIFACT_NAME=altotrader.dev" >> $GITHUB_OUTPUT
60- else
61- echo "ARTIFACT_NAME=altotrader" >> $GITHUB_OUTPUT
62- fi
63-
50+ ls -la dist/
51+
6452 - name : Upload artifact
6553 uses : actions/upload-artifact@v4
6654 with :
67- name : ${{ steps.set-artifact-name.outputs.ARTIFACT_NAME }}
55+ name : altotrader # Always this name
6856 path : dist/
6957 if-no-files-found : error
0 commit comments