Skip to content

Commit cde62ed

Browse files
committed
Simplify Docker and release workflows by removing version-specific tags and adding release conditions
1 parent 3b19073 commit cde62ed

2 files changed

Lines changed: 8 additions & 12 deletions

File tree

.github/workflows/docker.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
tags:
66
- '*'
7-
branches:
8-
- main
97

108
permissions:
119
packages: write
@@ -16,9 +14,6 @@ jobs:
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

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)