1
Fork 0
mirror of https://github.com/Steffo99/particle-clash.git synced 2024-11-25 17:14:19 +00:00
particle-clash/.github/workflows/godot-build.yml

49 lines
1.1 KiB
YAML
Raw Normal View History

2022-09-30 21:47:28 +00:00
name: "Build game release"
2022-10-02 13:42:40 +00:00
on:
push:
tags:
- "v*"
2022-09-30 21:47:28 +00:00
jobs:
build:
name: "Build game"
runs-on: ubuntu-latest
container:
2022-10-02 13:43:36 +00:00
image: "barichello/godot-ci:3.5.1"
2022-09-30 21:47:28 +00:00
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
2022-10-02 13:43:36 +00:00
mv /root/.local/share/godot/templates/3.5.1.stable ~/.local/share/godot/templates/3.5.1.stable
2022-09-30 21:47:28 +00:00
- name: "⚙️ Setup Godot build directories"
run: |
2022-10-02 13:49:54 +00:00
mkdir -v -p export/${{ matrix.target }}/LD51/
2022-09-30 21:47:28 +00:00
- name: "🏗️ Build game"
run: |
godot -v --export "${{ matrix.target }}"
2022-10-02 13:42:40 +00:00
- name: "🌐 Create release"
uses: ncipollo/release-action@v1.10.0
2022-09-30 21:47:28 +00:00
with:
2022-10-02 13:42:40 +00:00
artifactErrorsFailBuild: true
artifacts: export/${{ matrix.target }}/*
draft: true
generateReleaseNotes: true