generated from krampus/template-godot4
Added gitea publish action
This commit is contained in:
parent
0acfa25b19
commit
79c50bd449
|
@ -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 }}
|
|
@ -1,6 +1,6 @@
|
||||||
[preset.0]
|
[preset.0]
|
||||||
|
|
||||||
name="Linux"
|
name="linux"
|
||||||
platform="Linux"
|
platform="Linux"
|
||||||
runnable=true
|
runnable=true
|
||||||
advanced_options=true
|
advanced_options=true
|
||||||
|
@ -40,7 +40,7 @@ rm -rf \"{temp_dir}\""
|
||||||
|
|
||||||
[preset.1]
|
[preset.1]
|
||||||
|
|
||||||
name="Windows Desktop"
|
name="windows"
|
||||||
platform="Windows Desktop"
|
platform="Windows Desktop"
|
||||||
runnable=true
|
runnable=true
|
||||||
advanced_options=true
|
advanced_options=true
|
||||||
|
@ -105,7 +105,7 @@ Remove-Item -Recurse -Force '{temp_dir}'"
|
||||||
|
|
||||||
[preset.2]
|
[preset.2]
|
||||||
|
|
||||||
name="macOS"
|
name="mac"
|
||||||
platform="macOS"
|
platform="macOS"
|
||||||
runnable=true
|
runnable=true
|
||||||
advanced_options=true
|
advanced_options=true
|
||||||
|
|
Loading…
Reference in New Issue