Compare commits
83 commits
6d5b7b30e6
...
d39bf04dcb
Author | SHA1 | Date | |
---|---|---|---|
d39bf04dcb | |||
f5e67d7103 | |||
a89140c454 | |||
ee509a2ff9 | |||
6598a97a6c | |||
c3737fbc33 | |||
f1f23de590 | |||
cb9bb0068c | |||
8c2402912c | |||
13e6d27bcb | |||
10ccdc6717 | |||
0a6bfcfb07 | |||
e2c1192cf1 | |||
4525666749 | |||
1fbcda623f | |||
1bb3c19e23 | |||
e6f73f8504 | |||
48b8119b38 | |||
9bf5bc5a19 | |||
c52f6357be | |||
3334b7734c | |||
c056bd5db2 | |||
beb6d659da | |||
d7bde78747 | |||
44a5933e93 | |||
d94256ea3b | |||
f89904df18 | |||
d71e7508dc | |||
28fe48ce35 | |||
ad728d4169 | |||
9f5f7a2a21 | |||
895fd8dd35 | |||
e6cdf72ac6 | |||
3297406a6f | |||
956f2004e4 | |||
048c768f93 | |||
e2a253592d | |||
b83a2d5b19 | |||
56da4c30f6 | |||
3cd2bb2406 | |||
40a050ebc6 | |||
7e14ca7e40 | |||
6a45b7c733 | |||
fbda9f536f | |||
61893b8cc7 | |||
14849c9a20 | |||
b3000a193d | |||
b13cb6acbd | |||
51f7f01789 | |||
e1a2894d7b | |||
ae22173e58 | |||
d252a9d95f | |||
56ab0abc8e | |||
c7e9a9f1cd | |||
f03336cde7 | |||
79cb86b3b8 | |||
689eddae1a | |||
c6694158ab | |||
a3131be9d7 | |||
5f572d37ad | |||
04f8404ec0 | |||
61bf9d5e24 | |||
5fbc7462bd | |||
9b7b5702d8 | |||
c78ade6729 | |||
156fc83ab5 | |||
a7ee811d85 | |||
7ddbe585fd | |||
1642c8cf4f | |||
7f89391fa3 | |||
636b9d3ce7 | |||
0615182790 | |||
ccf63026b3 | |||
e3675dc9bd | |||
d8b1dbc1f7 | |||
855cf18dff | |||
1cb359bdb0 | |||
03d3456041 | |||
01ba6c46a0 | |||
029b329c74 | |||
ccf0a5bce7 | |||
0fc6689400 | |||
86f0cb1fb0 |
3 changed files with 95 additions and 0 deletions
81
.gitea/workflows/build.yml
Normal file
81
.gitea/workflows/build.yml
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
name: "godot-ci export"
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
export_game:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Export Game
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: https://github.com/actions/checkout@v3.3.0
|
||||||
|
- name: Install Packages
|
||||||
|
id: wine_install
|
||||||
|
run: |
|
||||||
|
apt update -y && apt upgrade -y
|
||||||
|
apt install -y wine64 nodejs p7zip-full ca-certificates tree jq curl zip
|
||||||
|
echo "WINE_PATH=$(which wine64)" >> $GITHUB_OUTPUT
|
||||||
|
- name: Download Godot build-libs
|
||||||
|
run: |
|
||||||
|
mkdir -p /root/.local/share/godot/
|
||||||
|
wget -nv https://github.com/godotengine/godot/releases/download/4.0.2-stable/Godot_v4.0.2-stable_linux.x86_64.zip -O "/root/.local/share/godot/godot.zip"
|
||||||
|
wget -nv https://github.com/godotengine/godot/releases/download/4.0.2-stable/Godot_v4.0.2-stable_export_templates.tpz -O /root/.local/share/godot/godot_templates.tpz
|
||||||
|
- name: Setup Godot build-libs
|
||||||
|
run: |
|
||||||
|
7z x /root/.local/share/godot/godot.zip -o/root/.local/share/godot/godot_executable -y
|
||||||
|
chmod +x /root/.local/share/godot/godot_executable/Godot_v4.0.2-stable_linux.x86_64
|
||||||
|
unzip /root/.local/share/godot/godot_templates.tpz -d /root/.local/share/godot
|
||||||
|
mv /root/.local/share/godot/templates /root/.local/share/godot/4.0.2.stable
|
||||||
|
mkdir -p /root/.local/share/godot/export_templates
|
||||||
|
mv /root/.local/share/godot/4.0.2.stable /root/.local/share/godot/export_templates
|
||||||
|
/root/.local/share/godot/godot_executable/Godot_v4.0.2-stable_linux.x86_64 --version
|
||||||
|
- name: Export for Linux
|
||||||
|
run: |
|
||||||
|
mkdir -p ./builds/linux/
|
||||||
|
/root/.local/share/godot/godot_executable/Godot_v4.0.2-stable_linux.x86_64 /var/lib/actions/project.godot -q --headless --export-release "Linux/X11" ./builds/linux/Game.x86_64
|
||||||
|
- name: Package for Linux
|
||||||
|
run: |
|
||||||
|
cd builds
|
||||||
|
tar -czvf linux.tar.gz -C linux/ .
|
||||||
|
- name: Export for Windows
|
||||||
|
run: |
|
||||||
|
mkdir -p ./builds/windows/
|
||||||
|
/root/.local/share/godot/godot_executable/Godot_v4.0.2-stable_linux.x86_64 /var/lib/actions/project.godot -q --headless --export-release "Windows Desktop" ./builds/windows/Game.exe
|
||||||
|
- name: Package for Windows
|
||||||
|
run: |
|
||||||
|
cd builds
|
||||||
|
cd windows; zip -r ../windows.zip *
|
||||||
|
cd ..
|
||||||
|
- name: Create Release
|
||||||
|
run: |
|
||||||
|
echo "Getting last Release Tag"
|
||||||
|
VERSION=$(curl -X 'GET' 'https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases?page=1&limit=1' -H 'accept: application/json' -H 'Authorization: token ${{ secrets.RELEASE_TOKEN }}' )
|
||||||
|
echo $VERSION | jq -r '.[0].tag_name'
|
||||||
|
VERSION=$(echo $VERSION | jq -r '.[0].tag_name' | awk -F. -v OFS=. '{$NF += 1 ; print}')
|
||||||
|
echo "Generate new Release with tag: $VERSION"
|
||||||
|
ID=$(curl -X 'POST' \
|
||||||
|
'https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases' \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-H 'Authorization: token ${{ secrets.RELEASE_TOKEN }}' \
|
||||||
|
-d "{
|
||||||
|
\"body\": \"Automated Build\",
|
||||||
|
\"draft\": true,
|
||||||
|
\"name\": \"Automated Release $VERSION\",
|
||||||
|
\"prerelease\": true,
|
||||||
|
\"tag_name\": \"$VERSION\"
|
||||||
|
}")
|
||||||
|
ID=$(echo $ID | jq -r '.id')
|
||||||
|
echo $ID Upload Linux
|
||||||
|
curl -X 'POST' \
|
||||||
|
"https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases/$ID/assets?name=Linux.tar.gz" \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H 'Content-Type: multipart/form-data' \
|
||||||
|
-H 'Authorization: token ${{ secrets.RELEASE_TOKEN }}' \
|
||||||
|
-F 'attachment=@./builds/linux.tar.gz;type=application/gzip'
|
||||||
|
echo $ID Upload Windows
|
||||||
|
curl -X 'POST' \
|
||||||
|
"https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases/$ID/assets?name=Windows.zip" \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H 'Content-Type: multipart/form-data' \
|
||||||
|
-H 'Authorization: token ${{ secrets.RELEASE_TOKEN }}' \
|
||||||
|
-F 'attachment=@./builds/windows.zip;type=application/gzip'
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
# Godot 4+ specific ignores
|
# Godot 4+ specific ignores
|
||||||
.godot/
|
.godot/
|
||||||
|
!.godot/global_script_class_cache.cfg
|
||||||
|
|
13
.godot/global_script_class_cache.cfg
Normal file
13
.godot/global_script_class_cache.cfg
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
list=Array[Dictionary]([{
|
||||||
|
"base": &"ColorRect",
|
||||||
|
"class": &"Tile",
|
||||||
|
"icon": "",
|
||||||
|
"language": &"GDScript",
|
||||||
|
"path": "res://Scripts/Tile.gd"
|
||||||
|
}, {
|
||||||
|
"base": &"Resource",
|
||||||
|
"class": &"TileColors",
|
||||||
|
"icon": "",
|
||||||
|
"language": &"GDScript",
|
||||||
|
"path": "res://Scripts/TileColors.gd"
|
||||||
|
}])
|
Loading…
Reference in a new issue