From a7c2616f5bf2b5de703cb03ceab5134a53232328 Mon Sep 17 00:00:00 2001 From: Rob Kelly Date: Fri, 10 Jan 2025 18:50:15 -0700 Subject: [PATCH] Added gitea publish action --- .gitea/workflows/publish.yaml | 31 +++++++++++++++++++++++++++++++ export_presets.cfg | 6 +++--- 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 .gitea/workflows/publish.yaml diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml new file mode 100644 index 0000000..9620b75 --- /dev/null +++ b/.gitea/workflows/publish.yaml @@ -0,0 +1,31 @@ +name: itch.io publish action +run-name: ${{ gitea.actor }} is publishing ${{ gitea.repository }} ${{ gitea.ref }} to itch.io. + +on: + push: + branches: + - ci-test + tags: + - v* + +jobs: + build: + runs-on: ubuntu-latest + env: + PNAME: ${{ gitea.event.repository.name }} + strategy: + matrix: + platform: [linux, mac, windows] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Pull LFS + run: git lfs pull + - name: Build project + uses: yeslayla/build-godot-action@v1.5.0 + with: + name: gfolf + preset: ${{ matrix.platform }} + debugMode: "true" + - name: Upload artifact + uses: actions/upload-artifact@v4 diff --git a/export_presets.cfg b/export_presets.cfg index 09fe2dc..6b98a30 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -1,6 +1,6 @@ [preset.0] -name="Linux" +name="linux" platform="Linux" runnable=true advanced_options=true @@ -40,7 +40,7 @@ rm -rf \"{temp_dir}\"" [preset.1] -name="Windows Desktop" +name="windows" platform="Windows Desktop" runnable=true advanced_options=true @@ -105,7 +105,7 @@ Remove-Item -Recurse -Force '{temp_dir}'" [preset.2] -name="macOS" +name="mac" platform="macOS" runnable=true advanced_options=true