gfolf2/.gitea/workflows/publish.yaml

35 lines
1.1 KiB
YAML
Raw Normal View History

2025-01-11 01:50:15 +00:00
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"