From b1ffda018b858abcf19914029c289de36a55df30 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 7 Jun 2025 23:10:49 +0200 Subject: [PATCH] Fix 28 --- .gitea/workflows/gitea-release.yaml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/gitea-release.yaml b/.gitea/workflows/gitea-release.yaml index 11e78e7..c91a87c 100644 --- a/.gitea/workflows/gitea-release.yaml +++ b/.gitea/workflows/gitea-release.yaml @@ -12,8 +12,9 @@ on: env: GODOT_VERSION: 4.3 PROJECT_PATH: . + PROJECT_NAME: GodotTest GAME_VERSION: ${{gitea.ref_name}} - EXPORT_NAME: test-project-$GAME_VERSION + EXPORT_NAME: test-project_${{gitea.ref_name}} jobs: build: @@ -47,38 +48,38 @@ jobs: - name: Windows Build run: | cd $PROJECT_PATH - ./godot --headless --verbose --export-release "Windows Desktop" "build/$EXPORT_NAME"_"$GAME_VERSION.exe" + ./godot --headless --verbose --export-release "Windows Desktop" "build/$EXPORT_NAME.exe" - name: Linux Build run: | cd $PROJECT_PATH - ./godot --headless --verbose --export-release "Linux/X11" "build/$EXPORT_NAME"_"$GAME_VERSION.x86_64" + ./godot --headless --verbose --export-release "Linux/X11" "build/$EXPORT_NAME.x86_64" - name: MacOS Build run: | cd $PROJECT_PATH - ./godot --headless --verbose --export-release "macOS" "build/$EXPORT_NAME"_"$GAME_VERSION.zip" + ./godot --headless --verbose --export-release "macOS" "build/$EXPORT_NAME.zip" - name: Upload Artifact Windows run: | #ls -la build curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \ - --upload-file "build/$EXPORT_NAME"_"$GAME_VERSION.exe" \ - https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/$EXPORT_NAME"_"$GAME_VERSION.exe + --upload-file "build/$EXPORT_NAME.exe" \ + https://gitea.sanplex.tech/api/packages/sansan/generic/$PROJECT_NAME/$GAME_VERSION/$EXPORT_NAME.exe - name: Upload Artifact Linux run: | ls -la build curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \ - --upload-file "build/$EXPORT_NAME"_"$GAME_VERSION.x86_64" \ - https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/$EXPORT_NAME"_"$GAME_VERSION.x86_64 + --upload-file "build/$EXPORT_NAME.x86_64" \ + https://gitea.sanplex.tech/api/packages/sansan/generic/$PROJECT_NAME/$GAME_VERSION/$EXPORT_NAME.x86_64 - name: Upload Artifact MacOS run: | ls -la build curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \ - --upload-file "build/$EXPORT_NAME"_"$GAME_VERSION.zip" \ - https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/$EXPORT_NAME"_"$GAME_VERSION.zip + --upload-file "build/$EXPORT_NAME.zip" \ + https://gitea.sanplex.tech/api/packages/sansan/generic/$PROJECT_NAME/$GAME_VERSION/$EXPORT_NAME.zip - name: Create release uses: akkuman/gitea-release-action@v1