Skip to content

Commit 45cdfaf

Browse files
Maximilian HansingerMaximilian Hansinger
authored andcommitted
direct push to development
1 parent d167219 commit 45cdfaf

File tree

3 files changed

+11
-22
lines changed

3 files changed

+11
-22
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ name: Build AltoTrader Package
22

33
on:
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

119
jobs:
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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ venv
44
.vscode/*
55
.vscode
66
dev.env
7+
dist
78

89
*.csv
910
logs

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ dependencies = [
2626
]
2727

2828
[project.optional-dependencies]
29-
dev = ["pytest", "ipython", "black"]
29+
dev = ["pytest", "ipython", "black", "build"]

0 commit comments

Comments
 (0)