43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Build Game
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- "v*.*.*" # only match version tags like v1.0.0
|
|
|
|
jobs:
|
|
export:
|
|
runs-on: docker-cli-node24
|
|
container:
|
|
image: barichello/godot-ci:4.5.1 # contains Godot headless + export templates
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Export Linux
|
|
run: godot --headless --export-release "Linux/X11" build/asteroids.x86_64
|
|
|
|
- name: Export Windows
|
|
run: godot --headless --export-release "Windows Desktop" build/asteroids.exe
|
|
|
|
- name: Export macOS
|
|
run: godot --headless --export-release "macOS" build/asteroids.zip
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: builds
|
|
path: build/*
|
|
|
|
- name: Create Release
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
uses: actions/forgejo-release@v2.7.3
|
|
with:
|
|
direction: upload
|
|
title: ${{ github.ref_name }}
|
|
tag: ${{ github.ref_name }}
|
|
release-dir: build
|
|
release-notes-assistant: true
|
|
|