From c43ec32e2d30fec949174776e91908a320533c29 Mon Sep 17 00:00:00 2001 From: mirgakh Date: Wed, 13 Mar 2024 13:41:41 +0100 Subject: [PATCH] initial commit --- .DS_Store | Bin 0 -> 6148 bytes .github/.DS_Store | Bin 0 -> 6148 bytes .github/workflows/deploy.yaml | 53 ++++++++++++++++++++++++++++++++++ .gitignore.txt | 17 +++++++++++ .gitignore => .gitignore_old | 0 builds/.DS_Store | Bin 0 -> 6148 bytes project/.gitattributes | 2 ++ project/.gitignore | 2 ++ project/export_presets.cfg | 37 ++++++++++++++++++++++++ project/icon.svg | 1 + project/icon.svg.import | 37 ++++++++++++++++++++++++ project/node_3d.tscn | 3 ++ project/project.godot | 20 +++++++++++++ 13 files changed, 172 insertions(+) create mode 100644 .DS_Store create mode 100644 .github/.DS_Store create mode 100644 .github/workflows/deploy.yaml create mode 100644 .gitignore.txt rename .gitignore => .gitignore_old (100%) create mode 100644 builds/.DS_Store create mode 100644 project/.gitattributes create mode 100644 project/.gitignore create mode 100644 project/export_presets.cfg create mode 100644 project/icon.svg create mode 100644 project/icon.svg.import create mode 100644 project/node_3d.tscn create mode 100644 project/project.godot diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..bc16a8cd54673d1128c0e18d4b8f10ba2804fe7e GIT binary patch literal 6148 zcmeHKK~BR!44iGNQUr&J6UTg^KL}NLK|g@fq85}Y6}0y}fPe4-jv#U2&NF~FaA3S% zg``Qv4HaZd-r0EVjWb!rF#tE-%tpWvzy}KmJgT|8Jw1QED<=)FZ&r4D zwdAvp=f-j}28@Bf%>Zk*$lyrPMq|JjFa}Bn=B)qW^So@GStbN3$2srI(PH zC}140P~-~5X(&-cU1%|!hSMGezc^r_sNry-`EcRRE_5i)-<|tM-W@Jhw9yza2I>rS z^>Qfn|9p4r7JU@0=dL^q>d83)2@4}1p13plKV9> zPV`DIG{}FxT&I3JNV#Iwr?y>nX$7lhe>|kq@#C%@uTPtAT5g{&b{-_*sx#mWI0Mdr zGw@>uaA%7&H;Udn1I~am@Wp_f4*^Xu8fL|Ebf7CG08pOMMW9P9AwIz{8fHbTKv-RY z>dIDPu)1SDm|Zl?it0{m#RuEYpT!H8-4Q<&bKp^tbMZ>HpQDnZj P1N|XT2=UGt_yq>e>Ao}( literal 0 HcmV?d00001 diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..dc0424d --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,53 @@ +# Workflow to publish Godot HTML5 games to GitHub Pages +# +# Make sure your project is configured for Web export to the path `build/web`. + +name: 'Publish to GitHub Pages' + +env: + GODOT_VERSION: 4.2 # Remember to manually set image to this version below. + +on: + workflow_dispatch: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: write + + container: + image: barichello/godot-ci:4.2 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Move HTML5 templates into position + run: | + mkdir -v -p ~/.local/share/godot/export_templates + mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable + - name: Create staging directory + run: mkdir -v -p build/web + + - name: Build + run: godot -v --export-release --headless "Web" ../build/web/index.html project/project.godot + + - name: Add coi-service-worker + run: | + git clone https://github.com/gzuidhof/coi-serviceworker.git + mv coi-serviceworker/coi-serviceworker.js build/web/coi-serviceworker.js + sed -i '3 i ' build/web/index.html + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3.9.3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build/web + force_orphan: true + user_name: 'github-ci[bot]' + user_email: 'github-actions[bot]@users.noreply.github.com' + commit_message: 'Publish to gh-pages' \ No newline at end of file diff --git a/.gitignore.txt b/.gitignore.txt new file mode 100644 index 0000000..1dbde5f --- /dev/null +++ b/.gitignore.txt @@ -0,0 +1,17 @@ +# Godot-specific ignores +.import/ +export.cfg +.godot/ + +# Imported translations (automatically generated from CSV files) +*.translation + +# Mono-specific ignores +.mono/ +data_*/ + +#Other +build +project/.import +.DS_Store +project/.DS_Store \ No newline at end of file diff --git a/.gitignore b/.gitignore_old similarity index 100% rename from .gitignore rename to .gitignore_old diff --git a/builds/.DS_Store b/builds/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..ca2422db1a4985a32f802215161402ffdcb0d044 GIT binary patch literal 6148 zcmeHKJ5Iwu5S=9{ETu_FxmU;ymdKnS7eFQmidasAXx*iwLgGZ}a}G|yn-8C8g-eR) zjWqMT^VzjuvEvbuw0_>MM3y4bKo#YnrWTE>R&o`dIWXxStIhq;@2k8iht|&IMINNv zJy!J*>4&!Mc0-5U=Kbw;@o_rd{M7Zsb|Sies&<`vAI8W486X2>fDBwZ1L)Z*&BBqE z43Ggb@XdhU4;iXh0!K%?I$&%B0P1hN37&110A_UnOW^1T4vI61|HlI(Q&v!zQaj7`Tx9#D>6U^E{cIPZ#V54 zpA@~d`Z(>i8F~l(669JsjJ0B*wPGx^6<`0#%leFX2^<}*9DXYY@<%{ diff --git a/project/icon.svg.import b/project/icon.svg.import new file mode 100644 index 0000000..b694bdc --- /dev/null +++ b/project/icon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bghl6w2f1nfa5" +path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.svg" +dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/project/node_3d.tscn b/project/node_3d.tscn new file mode 100644 index 0000000..b723879 --- /dev/null +++ b/project/node_3d.tscn @@ -0,0 +1,3 @@ +[gd_scene format=3 uid="uid://bp6nf2p8c3qnl"] + +[node name="Node3D" type="Node3D"] diff --git a/project/project.godot b/project/project.godot new file mode 100644 index 0000000..6057d6a --- /dev/null +++ b/project/project.godot @@ -0,0 +1,20 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=5 + +[application] + +config/name="Toy 4" +config/features=PackedStringArray("4.2", "GL Compatibility") +config/icon="res://icon.svg" + +[rendering] + +renderer/rendering_method="gl_compatibility" +renderer/rendering_method.mobile="gl_compatibility"