From 79c50bd449d85d9f17c9cea281f2d3dc94150828 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 | 38 +++++++++++++++++++++++++++++++++++ export_presets.cfg | 6 +++--- 2 files changed, 41 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..3167cc1 --- /dev/null +++ b/.gitea/workflows/publish.yaml @@ -0,0 +1,38 @@ +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 + run: | + git init + git remote add origin ${{ gitea.event.repository.ssh_url }} + git fetch --depth 1 origin ${{ gitea.ref }} + git checkout FETCH_HEAD + git lfs pull + - name: Build project + id: build + uses: yeslayla/build-godot-action@v1.5.0 + with: + name: gfolf + preset: ${{ matrix.platform }} + debugMode: "true" + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: Debug Build - ${{ matrix.platform }} + path: ${{ gitea.workspace }}/${{ steps.build.outputs.build }} 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