Fix 28
All checks were successful
Build / build (push) Successful in 1m8s
Publish / build (push) Successful in 1m19s

This commit is contained in:
2025-06-07 23:10:49 +02:00
parent c649694f36
commit b1ffda018b

View File

@@ -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