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