Fix 11
All checks were successful
godot-ci export / build (push) Successful in 1m12s

This commit is contained in:
2025-05-29 11:55:10 +02:00
parent e25aa48570
commit 566633a9dc

View File

@@ -8,9 +8,9 @@ on: push
env:
GODOT_VERSION: 4.3
EXPORT_NAME: test-project
PROJECT_PATH: .
GAME_VERSION: 0.0.2
GAME_VERSION: 0.0.3
EXPORT_NAME: test-project
jobs:
build:
@@ -54,45 +54,48 @@ jobs:
run: |
mkdir -v -p build/windows
cd $PROJECT_PATH
./godot --headless --verbose --export-release "Windows Desktop" "build/windows/$EXPORT_NAME.exe"
./godot --headless --verbose --export-release "Windows Desktop" "build/windows/$EXPORT_NAME_$GAME_VERSION.exe"
ls -la "build/windows/"
- name: Linux Build
run: |
mkdir -v -p build/linux
cd $PROJECT_PATH
./godot --headless --verbose --export-release "Linux/X11" "build/linux/$EXPORT_NAME.x86_64"
- name: Upload Artifact Windows
run: |
echo $EXPORT_DIR
#pwd
#ls -la
ls -la build
ls -la build/windows
#ls -la "build/windows/"
curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \
--upload-file "build/windows/$EXPORT_NAME.exe" \
https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/$EXPORT_NAME.exe
- name: Upload Artifact Linux
run: |
echo $EXPORT_DIR
#pwd
#ls -la
ls -la build
ls -la build/linux
#ls -la "build/linux/"
curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \
--upload-file "build/linux/$EXPORT_NAME.x86_64" \
https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/$EXPORT_NAME.x86_64
./godot --headless --verbose --export-release "Linux/X11" "build/linux/$EXPORT_NAME_$GAME_VERSION.x86_64"
- name: MacOS Build
run: |
mkdir -v -p build/macos
cd $PROJECT_PATH
./godot --headless --verbose --export-release "macOS" "build/macos/$EXPORT_NAME.zip"
./godot --headless --verbose --export-release "macOS" "build/macos/$EXPORT_NAME_$GAME_VERSION.zip"
- name: Upload Artifact Windows
run: |
echo $EXPORT_DIR
ls -la build
ls -la build/windows
curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \
--upload-file "build/windows/$EXPORT_NAME_$GAME_VERSION.exe" \
"https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/windows/$EXPORT_NAME_$GAME_VERSION.exe"
- name: Upload Artifact Linux
run: |
echo $EXPORT_DIR
ls -la build
ls -la build/linux
curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \
--upload-file "build/linux/$EXPORT_NAME_$GAME_VERSION.x86_64" \
"https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/linux/$EXPORT_NAME_$GAME_VERSION.x86_64"
- name: Upload Artifact Linux
run: |
echo $EXPORT_DIR
ls -la build
ls -la build/macos
curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \
--upload-file "build/macos/$EXPORT_NAME_$GAME_VERSION.zip" \
"https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/macos/$EXPORT_NAME_$GAME_VERSION.zip"
# uses: actions/upload-artifact@v4
# with: