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 14:03:52 +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 14:03:52 +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 14:03:52 +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 14:00:26 +00:00
|
|
|
- name: "⬆️ Upload artifact"
|
|
|
|
uses: actions/upload-artifact@v1
|
2022-09-30 21:47:28 +00:00
|
|
|
with:
|
2022-10-02 14:00:26 +00:00
|
|
|
name: "${{ matrix.target }}"
|
|
|
|
path: "export/${{ matrix.target }}"
|