From 4ec91c12772997ae46fa5fdc0c6ec833bea7a66d Mon Sep 17 00:00:00 2001 From: minimata Date: Fri, 27 Jun 2025 14:58:12 +0200 Subject: [PATCH] ci: updated for new itch project --- .gitea/workflows/main.yaml | 51 ++++++++++++++++++-------------------- project.godot | 2 +- 2 files changed, 25 insertions(+), 28 deletions(-) diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index b8a6650..d1e2bce 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -8,10 +8,9 @@ on: - "**" env: - GAME_NAME: GodotExampleProject + GAME_NAME: EGJ25 ITCHIO_USERNAME: Minimata - ITCHIO_GAMEID: CICDTestProject - + ITCHIO_GAMEID: EGJ25 jobs: BumpTag: @@ -25,12 +24,11 @@ jobs: lfs: false - name: Remove buggy pre-push hook run: | - rm -f .git/hooks/pre-push + rm -f .git/hooks/pre-push - name: Bump version and push tag id: bump-tag uses: anothrNick/github-tag-action@v1 env: - GITHUB_TOKEN: ${{ secrets.TOKEN }} GIT_API_TAGGING: false WITH_V: true PRERELEASE: false @@ -41,19 +39,19 @@ jobs: runs-on: ubuntu-latest needs: BumpTag container: - image: barichello/godot-ci:mono-4.4.1 + image: barichello/godot-ci:4.4.1 steps: - name: Install node, curl and zip run: | - apt update && apt -y install curl zip nodejs + apt update && apt -y install curl zip nodejs - name: Checkout with LFS - uses: https://git.game-dev.space/minimata/checkout-lfs.git@main + uses: https://git.game-dev.space/minimata/checkout-with-lfs.git@main with: checkout-version: 3 - name: Import resources and build solution run: | - godot --headless --editor --build-solutions --quit --import --path $PWD + godot --headless --editor --build-solutions --quit --import --path $PWD - name: Build Windows run: | mkdir -v -p build/windows @@ -69,12 +67,11 @@ jobs: mkdir -v -p build/mac godot --headless --verbose --export-release "macOS" build/mac/${{ env.GAME_NAME }}.zip zip -r Mac.zip build/mac - - - name: Upload Windows build - uses: actions/upload-artifact@v3 - with: - name: WindowsBuild - path: Windows.zip + - name: Web Build + run: | + mkdir -v -p build/web + godot --headless --verbose --export-release "Web" build/web/index.html + - name: Upload to Itch uses: KikimoraGames/itch-publish@v0.0.3 with: @@ -85,11 +82,6 @@ jobs: gameData: Windows.zip buildChannel: windows - - name: Upload Linux build - uses: actions/upload-artifact@v3 - with: - name: LinuxBuild - path: Linux.zip - name: Upload to Itch uses: KikimoraGames/itch-publish@v0.0.3 with: @@ -98,13 +90,8 @@ jobs: itchGameId: ${{ env.ITCHIO_GAMEID }} buildNumber: ${{ needs.BumpTag.outputs.tag_name }} gameData: Linux.zip - buildChannel: linux - - - name: Upload Mac build - uses: actions/upload-artifact@v3 - with: - name: MacBuild - path: Mac.zip + buildChannel: linux + - name: Upload to Itch uses: KikimoraGames/itch-publish@v0.0.3 with: @@ -114,3 +101,13 @@ jobs: buildNumber: ${{ needs.BumpTag.outputs.tag_name }} gameData: Mac.zip buildChannel: mac + + - name: Upload to Itch + uses: KikimoraGames/itch-publish@v0.0.3 + with: + butlerApiKey: ${{ secrets.BUTLER_TOKEN }} + itchUsername: ${{ env.ITCHIO_USERNAME }} + itchGameId: ${{ env.ITCHIO_GAMEID }} + buildNumber: ${{ needs.BumpTag.outputs.tag_name }} + gameData: build/web + buildChannel: web \ No newline at end of file diff --git a/project.godot b/project.godot index e75d17b..c1e5676 100644 --- a/project.godot +++ b/project.godot @@ -10,7 +10,7 @@ config_version=5 [application] -config/name="ExampleProject" +config/name="EGJ25" run/main_scene="uid://s1cx1gvt4bed" config/features=PackedStringArray("4.4", "Forward Plus") config/icon="res://icon.svg"