Fix 27
This commit is contained in:
60
.gitea/workflows/gitea-build.yaml
Normal file
60
.gitea/workflows/gitea-build.yaml
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
#
|
||||||
|
# .gitea/workflows/gitea-build.yaml
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
name: "Build"
|
||||||
|
on:
|
||||||
|
push: [main, develop]
|
||||||
|
|
||||||
|
env:
|
||||||
|
GODOT_VERSION: 4.3
|
||||||
|
PROJECT_PATH: .
|
||||||
|
#GAME_VERSION: 0.0.8
|
||||||
|
#GAME_VERSION: ${{gitea.ref_name}}
|
||||||
|
EXPORT_NAME: test-project
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Download Godot
|
||||||
|
run: |
|
||||||
|
#echo "https://github.com/godotengine/godot-builds/releases/download/$GODOT_VERSION-stable/Godot_v$GODOT_VERSION-stable_linux.x86_64.zip"
|
||||||
|
curl -L -o godot.zip https://github.com/godotengine/godot-builds/releases/download/$GODOT_VERSION-stable/Godot_v$GODOT_VERSION-stable_linux.x86_64.zip
|
||||||
|
unzip godot.zip
|
||||||
|
mv Godot_v$GODOT_VERSION-stable_linux.x86_64 godot
|
||||||
|
chmod +x godot
|
||||||
|
|
||||||
|
- name: Download Godot Export Templates
|
||||||
|
run: |
|
||||||
|
#echo "https://github.com/godotengine/godot-builds/releases/download/$GODOT_VERSION-stable/Godot_v$GODOT_VERSION-stable_export_templates.tpz"
|
||||||
|
curl -L -o export_templates.zip https://github.com/godotengine/godot-builds/releases/download/$GODOT_VERSION-stable/Godot_v$GODOT_VERSION-stable_export_templates.tpz
|
||||||
|
unzip export_templates.zip
|
||||||
|
|
||||||
|
- name: Install Export Templates
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.local/share/godot/export_templates/$GODOT_VERSION.stable
|
||||||
|
mv ./templates/* ~/.local/share/godot/export_templates/$GODOT_VERSION.stable
|
||||||
|
|
||||||
|
- name: Create build folder
|
||||||
|
run: |
|
||||||
|
mkdir -v -p build
|
||||||
|
|
||||||
|
- name: Windows Build
|
||||||
|
run: |
|
||||||
|
cd $PROJECT_PATH
|
||||||
|
./godot --headless --verbose --export-release "Windows Desktop" "build/$EXPORT_NAME.exe"
|
||||||
|
|
||||||
|
- name: Linux Build
|
||||||
|
run: |
|
||||||
|
cd $PROJECT_PATH
|
||||||
|
./godot --headless --verbose --export-release "Linux/X11" "build/$EXPORT_NAME.x86_64"
|
||||||
|
|
||||||
|
- name: MacOS Build
|
||||||
|
run: |
|
||||||
|
cd $PROJECT_PATH
|
||||||
|
./godot --headless --verbose --export-release "macOS" "build/$EXPORT_NAME.zip"
|
||||||
|
|
||||||
@@ -1,21 +1,19 @@
|
|||||||
#
|
#
|
||||||
# .gitea/gitea-ci.yaml
|
# .gitea/workflows/gitea-release.yaml
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
name: "godot-ci export"
|
name: "Publish"
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- '*.*'
|
- '*.*'
|
||||||
#on: push
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GODOT_VERSION: 4.3
|
GODOT_VERSION: 4.3
|
||||||
PROJECT_PATH: .
|
PROJECT_PATH: .
|
||||||
#GAME_VERSION: 0.0.8
|
|
||||||
GAME_VERSION: ${{gitea.ref_name}}
|
GAME_VERSION: ${{gitea.ref_name}}
|
||||||
EXPORT_NAME: test-project
|
EXPORT_NAME: test-project-$GAME_VERSION
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -23,10 +21,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download Godot
|
- name: Download Godot
|
||||||
run: |
|
run: |
|
||||||
echo "https://github.com/godotengine/godot-builds/releases/download/$GODOT_VERSION-stable/Godot_v$GODOT_VERSION-stable_linux.x86_64.zip"
|
#echo "https://github.com/godotengine/godot-builds/releases/download/$GODOT_VERSION-stable/Godot_v$GODOT_VERSION-stable_linux.x86_64.zip"
|
||||||
curl -L -o godot.zip https://github.com/godotengine/godot-builds/releases/download/$GODOT_VERSION-stable/Godot_v$GODOT_VERSION-stable_linux.x86_64.zip
|
curl -L -o godot.zip https://github.com/godotengine/godot-builds/releases/download/$GODOT_VERSION-stable/Godot_v$GODOT_VERSION-stable_linux.x86_64.zip
|
||||||
unzip godot.zip
|
unzip godot.zip
|
||||||
mv Godot_v$GODOT_VERSION-stable_linux.x86_64 godot
|
mv Godot_v$GODOT_VERSION-stable_linux.x86_64 godot
|
||||||
@@ -34,7 +31,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Download Godot Export Templates
|
- name: Download Godot Export Templates
|
||||||
run: |
|
run: |
|
||||||
echo "https://github.com/godotengine/godot-builds/releases/download/$GODOT_VERSION-stable/Godot_v$GODOT_VERSION-stable_export_templates.tpz"
|
#echo "https://github.com/godotengine/godot-builds/releases/download/$GODOT_VERSION-stable/Godot_v$GODOT_VERSION-stable_export_templates.tpz"
|
||||||
curl -L -o export_templates.zip https://github.com/godotengine/godot-builds/releases/download/$GODOT_VERSION-stable/Godot_v$GODOT_VERSION-stable_export_templates.tpz
|
curl -L -o export_templates.zip https://github.com/godotengine/godot-builds/releases/download/$GODOT_VERSION-stable/Godot_v$GODOT_VERSION-stable_export_templates.tpz
|
||||||
unzip export_templates.zip
|
unzip export_templates.zip
|
||||||
|
|
||||||
@@ -43,27 +40,28 @@ 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: Windows Build
|
- name: Create build folder
|
||||||
run: |
|
run: |
|
||||||
mkdir -v -p build
|
mkdir -v -p build
|
||||||
|
|
||||||
|
- name: Windows Build
|
||||||
|
run: |
|
||||||
cd $PROJECT_PATH
|
cd $PROJECT_PATH
|
||||||
./godot --headless --verbose --export-release "Windows Desktop" "build/$EXPORT_NAME"_"$GAME_VERSION.exe"
|
./godot --headless --verbose --export-release "Windows Desktop" "build/$EXPORT_NAME"_"$GAME_VERSION.exe"
|
||||||
|
|
||||||
- name: Linux Build
|
- name: Linux Build
|
||||||
run: |
|
run: |
|
||||||
mkdir -v -p build
|
|
||||||
cd $PROJECT_PATH
|
cd $PROJECT_PATH
|
||||||
./godot --headless --verbose --export-release "Linux/X11" "build/$EXPORT_NAME"_"$GAME_VERSION.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
|
|
||||||
cd $PROJECT_PATH
|
cd $PROJECT_PATH
|
||||||
./godot --headless --verbose --export-release "macOS" "build/$EXPORT_NAME"_"$GAME_VERSION.zip"
|
./godot --headless --verbose --export-release "macOS" "build/$EXPORT_NAME"_"$GAME_VERSION.zip"
|
||||||
|
|
||||||
- name: Upload Artifact Windows
|
- name: Upload Artifact Windows
|
||||||
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"_"$GAME_VERSION.exe" \
|
--upload-file "build/$EXPORT_NAME"_"$GAME_VERSION.exe" \
|
||||||
https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/$EXPORT_NAME"_"$GAME_VERSION.exe
|
https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/$EXPORT_NAME"_"$GAME_VERSION.exe
|
||||||
@@ -89,27 +87,3 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
build/**
|
build/**
|
||||||
|
|
||||||
# uses: actions/upload-artifact@v4
|
|
||||||
# with:
|
|
||||||
# name: windows
|
|
||||||
# path: build/windows
|
|
||||||
|
|
||||||
#- name: Upload Artifact
|
|
||||||
# uses: actions/upload-artifact@v4
|
|
||||||
# with:
|
|
||||||
# name: linux
|
|
||||||
# path: build/linux
|
|
||||||
|
|
||||||
#- name: Zip HTML Export
|
|
||||||
# run: |
|
|
||||||
# cd exports/html
|
|
||||||
# zip $PROJECT_NAME-html.zip -r -m *
|
|
||||||
# mv $PROJECT_NAME-html.zip ..
|
|
||||||
# cd -
|
|
||||||
|
|
||||||
#- name: Save Artifacts for Next Job
|
|
||||||
# uses: actions/upload-artifact@v3
|
|
||||||
# with:
|
|
||||||
# name: exports
|
|
||||||
# path: exports
|
|
||||||
Reference in New Issue
Block a user