File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 tags :
66 - ' *'
7- branches :
8- - main
97
108permissions :
119 packages : write
1614 steps :
1715 - uses : actions/checkout@v4
1816
19- - name : Set up Docker Buildx
20- uses : docker/setup-buildx-action@v3
21-
2217 - name : Login to Docker Hub
2318 uses : docker/login-action@v3
2419 with :
@@ -31,16 +26,12 @@ jobs:
3126 context : ./frontend
3227 file : ./frontend/Dockerfile.prod
3328 push : true
34- tags : |
35- bangertech/bambucam-frontend:latest
36- bangertech/bambucam-frontend:${{ github.ref_name }}
29+ tags : bangertech/bambucam-frontend:latest
3730
3831 - name : Build and push Backend
3932 uses : docker/build-push-action@v5
4033 with :
4134 context : ./backend
4235 file : ./backend/Dockerfile.prod
4336 push : true
44- tags : |
45- bangertech/bambucam-backend:latest
46- bangertech/bambucam-backend:${{ github.ref_name }}
37+ tags : bangertech/bambucam-backend:latest
Original file line number Diff line number Diff line change @@ -25,10 +25,15 @@ jobs:
2525 run : |
2626 cd installer/BambuCAM.Installer
2727 dotnet publish -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true
28+ dir bin\Release\net8.0\win-x64\publish # Debug: Liste Dateien auf
2829
2930 - name : Create Release
3031 uses : softprops/action-gh-release@v1
32+ if : startsWith(github.ref, 'refs/tags/') # Nur bei Tags
3133 with :
32- files : installer/BambuCAM.Installer/bin/Release/net8.0/win-x64/publish/BambuCAM.Installer.exe
34+ files : |
35+ installer/BambuCAM.Installer/bin/Release/net8.0/win-x64/publish/BambuCAM.Installer.exe
36+ draft : false
37+ prerelease : false
3338 env :
3439 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments