mirror of
https://github.com/Steffo99/particle-clash.git
synced 2024-11-25 00:54:18 +00:00
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
name: "Build game release"
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
jobs:
|
|
build:
|
|
name: "Build game"
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: "barichello/godot-ci:3.4.4"
|
|
|
|
strategy:
|
|
matrix:
|
|
target:
|
|
- "Windows"
|
|
- "MacOSX"
|
|
- "LinuxX11"
|
|
- "HTML5"
|
|
|
|
steps:
|
|
- name: "⬇️ Checkout repository"
|
|
uses: actions/checkout@v2
|
|
with:
|
|
lfs: true
|
|
|
|
- name: "⚙️ Setup Godot templates"
|
|
run: |
|
|
mkdir -v -p ~/.local/share/godot/templates
|
|
mv /root/.local/share/godot/templates/3.4.4.stable ~/.local/share/godot/templates/3.4.4.stable
|
|
|
|
- name: "⚙️ Setup Godot build directories"
|
|
run: |
|
|
mkdir -v -p export/${{ matrix.target }}/LD50/
|
|
|
|
- name: "🏗️ Build game"
|
|
run: |
|
|
godot -v --export "${{ matrix.target }}"
|
|
|
|
- name: "🌐 Create release"
|
|
uses: ncipollo/release-action@v1.10.0
|
|
with:
|
|
artifactErrorsFailBuild: true
|
|
artifacts: export/${{ matrix.target }}/*
|
|
draft: true
|
|
generateReleaseNotes: true
|