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