This commit is contained in:
@@ -9,7 +9,7 @@ on: push
|
||||
env:
|
||||
GODOT_VERSION: 4.3
|
||||
PROJECT_PATH: .
|
||||
GAME_VERSION: 0.0.7
|
||||
GAME_VERSION: 0.0.8
|
||||
EXPORT_NAME: test-project
|
||||
|
||||
jobs:
|
||||
@@ -19,10 +19,10 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
#- name: Get Godot Version
|
||||
# run: |
|
||||
# # Add specific Godot Version to project.godot = `config/features=PackedStringArray("4.2", "4.2.2", "Forward Plus")`
|
||||
# echo "GODOT_VERSION=$(grep '^config/features' project.godot | cut -d "\"" -f 4)" >> $GITHUB_ENV
|
||||
- name: Get Godot Version
|
||||
run: |
|
||||
# Add specific Godot Version to project.godot = `config/features=PackedStringArray("4.2", "4.2.2", "Forward Plus")`
|
||||
echo "GODOT_VERSION=$(grep '^config/features' project.godot | cut -d "\"" -f 4)" >> $GITHUB_ENV
|
||||
|
||||
- name: Download Godot
|
||||
run: |
|
||||
@@ -43,13 +43,6 @@ jobs:
|
||||
mkdir -p ~/.local/share/godot/export_templates/$GODOT_VERSION.stable
|
||||
mv ./templates/* ~/.local/share/godot/export_templates/$GODOT_VERSION.stable
|
||||
|
||||
#- name: Build
|
||||
# run: |
|
||||
# ./godot --headless --export-release html
|
||||
# ./godot --headless --export-release linux
|
||||
# ./godot --headless --export-release macos
|
||||
# ./godot --headless --export-release windows
|
||||
|
||||
- name: Windows Build
|
||||
run: |
|
||||
mkdir -v -p build
|
||||
@@ -60,13 +53,13 @@ jobs:
|
||||
run: |
|
||||
mkdir -v -p build
|
||||
cd $PROJECT_PATH
|
||||
./godot --headless --verbose --export-release "Linux/X11" "build/$EXPORT_NAME.x86_64"
|
||||
./godot --headless --verbose --export-release "Linux/X11" "build/$EXPORT_NAME"_"$GAME_VERSION.x86_64"
|
||||
|
||||
- name: MacOS Build
|
||||
run: |
|
||||
mkdir -v -p build
|
||||
cd $PROJECT_PATH
|
||||
./godot --headless --verbose --export-release "macOS" "build/$EXPORT_NAME.zip"
|
||||
./godot --headless --verbose --export-release "macOS" "build/$EXPORT_NAME"_"$GAME_VERSION.zip"
|
||||
|
||||
- name: Upload Artifact Windows
|
||||
run: |
|
||||
@@ -83,15 +76,15 @@ jobs:
|
||||
run: |
|
||||
ls -la build
|
||||
curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \
|
||||
--upload-file "build/$EXPORT_NAME.x86_64" \
|
||||
https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/$EXPORT_NAME.x86_64
|
||||
--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
|
||||
|
||||
- name: Upload Artifact MacOS
|
||||
run: |
|
||||
ls -la build
|
||||
curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \
|
||||
--upload-file "build/$EXPORT_NAME.zip" \
|
||||
https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/$EXPORT_NAME.zip
|
||||
--upload-file "build/$EXPORT_NAME"_"$GAME_VERSION.zip" \
|
||||
https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/$EXPORT_NAME"_"$GAME_VERSION.zip
|
||||
|
||||
- name: Create release
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
|
||||
Reference in New Issue
Block a user