Added gitea publish action
itch.io publish action / build (push) Failing after 0s Details

This commit is contained in:
Rob Kelly 2025-01-10 18:50:15 -07:00
parent 0acfa25b19
commit 65d4a3cea9
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
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 }}
steps:
- name: Setup Godot
uses: chickensoft-games/setup-godot@v1
with:
version: 4.3
use-dotnet: false
- name: Checkout repository
uses: actions/checkout@v4
- name: Build project
- run: |
curl -L -o butler.zip https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default
unzip butler.zip
chmod +x butler
./butler -V
- run: |
mkdir -p build/"$PNAME"_{linux64,osx,win64}
godot --headless --verbose --export-debug "Linux" build/"$PNAME"_linux64/"$PNAME.x86_64"
godot --headless --verbose --export-debug "macOS" build/"$PNAME"_osx/"$PNAME.app"
godot --headless --verbose --export-debug "Windows Desktop" build/"$PNAME"_win64/"$PNAME.exe"