gfolf2/.gitea/workflows/publish.yaml

39 lines
1.0 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 }}
strategy:
matrix:
platform: [linux, mac, windows]
steps:
- name: Checkout repository
run: |
git init
git remote add origin ${{ gitea.event.repository.clone_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 }}