This commit is contained in:
parent
a4452b69c4
commit
3750104100
1 changed files with 43 additions and 0 deletions
43
.forgejo/workflows/build.yml
Normal file
43
.forgejo/workflows/build.yml
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
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
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue