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: |
|
|
|
|
mkdir -v -p export/${{ matrix.target }}/LD50/
|
|
|
|
|
|
|
|
- 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
|