This commit is contained in:
@@ -9,7 +9,7 @@ on: push
|
||||
env:
|
||||
GODOT_VERSION: 4.3
|
||||
PROJECT_PATH: .
|
||||
GAME_VERSION: 0.0.3
|
||||
GAME_VERSION: 0.0.4
|
||||
EXPORT_NAME: test-project
|
||||
|
||||
jobs:
|
||||
@@ -52,50 +52,57 @@ jobs:
|
||||
|
||||
- name: Windows Build
|
||||
run: |
|
||||
mkdir -v -p build/windows
|
||||
mkdir -v -p build
|
||||
cd $PROJECT_PATH
|
||||
./godot --headless --verbose --export-release "Windows Desktop" "build/windows/$EXPORT_NAME.exe"
|
||||
./godot --headless --verbose --export-release "Windows Desktop" "build/$EXPORT_NAME.exe"
|
||||
|
||||
ls -la "build/windows/"
|
||||
- name: Linux Build
|
||||
run: |
|
||||
mkdir -v -p build/linux
|
||||
mkdir -v -p build
|
||||
cd $PROJECT_PATH
|
||||
./godot --headless --verbose --export-release "Linux/X11" "build/linux/$EXPORT_NAME.x86_64"
|
||||
./godot --headless --verbose --export-release "Linux/X11" "build/$EXPORT_NAME.x86_64"
|
||||
|
||||
- name: MacOS Build
|
||||
run: |
|
||||
mkdir -v -p build/macos
|
||||
mkdir -v -p build
|
||||
cd $PROJECT_PATH
|
||||
./godot --headless --verbose --export-release "macOS" "build/macos/$EXPORT_NAME.zip"
|
||||
./godot --headless --verbose --export-release "macOS" "build/$EXPORT_NAME.zip"
|
||||
|
||||
- name: Upload Artifact Windows
|
||||
run: |
|
||||
echo $EXPORT_DIR
|
||||
echo {{$EXPORT_DIR}}
|
||||
echo ${{EXPORT_DIR}}
|
||||
echo '${{EXPORT_DIR}}'
|
||||
echo '${{EXPORT_NAME}}_${{GAME_VERSION}}'
|
||||
ls -la build
|
||||
ls -la build/windows
|
||||
curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \
|
||||
--upload-file "build/windows/$EXPORT_NAME.exe" \
|
||||
--upload-file "build/$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
|
||||
ls -la build
|
||||
ls -la build/linux
|
||||
curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \
|
||||
--upload-file "build/linux/$EXPORT_NAME.x86_64" \
|
||||
--upload-file "build/$EXPORT_NAME.x86_64" \
|
||||
https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/$EXPORT_NAME.x86_64
|
||||
|
||||
- name: Upload Artifact MacOS
|
||||
run: |
|
||||
echo $EXPORT_DIR
|
||||
ls -la build
|
||||
ls -la build/macos
|
||||
curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \
|
||||
--upload-file "build/macos/$EXPORT_NAME.zip" \
|
||||
--upload-file "build/$EXPORT_NAME.zip" \
|
||||
https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/$EXPORT_NAME.zip
|
||||
|
||||
- name: Create release
|
||||
id: use-go-action
|
||||
uses: https://gitea.com/actions/release-action@main
|
||||
with:
|
||||
files: |
|
||||
build/**
|
||||
api_key: '${{ secrets.TOKEN }}'
|
||||
|
||||
# uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
|
||||
Reference in New Issue
Block a user