Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
33 changes: 33 additions & 0 deletions .github/workflows/build-verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build Verification

on:
push:
branches: [ alpha, main, develop ]
pull_request:
branches: [ alpha, main, develop ]

env:
GODOT_VERSION: 4.5.0

jobs:
verify-build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Godot
uses: chickensoft-games/setup-godot@v2
with:
version: ${{ env.GODOT_VERSION }}
use-mono: false
include-templates: true

- name: Verify Godot project
run: |
godot --headless -e --quit
echo "Godot project verification passed"

- name: Check export presets
run: |
godot --headless --export-debug "Linux Server" build/test_export 2>&1 | grep -E "(error|Error|ERROR)" || echo "Export preset validation passed"
133 changes: 133 additions & 0 deletions .github/workflows/manual-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
name: Manual Build and Release

on:
workflow_dispatch:
inputs:
version:
description: 'Version number (e.g., 1.0.0)'
required: true
type: string
create_release:
description: 'Create GitHub Release'
required: false
type: boolean
default: true

env:
GODOT_VERSION: 4.5.0
GODOT_MONO_VERSION: 4.5.0

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
export_name: "OpenChamp_Linux_Server"
preset: "Linux Server"
artifact_ext: ""
- os: windows-latest
export_name: "OpenChamp_Win_Server.exe"
preset: "Win Server(x86)"
artifact_ext: ".exe"
- os: macos-latest
export_name: "OpenChamp_MacOS_Server.app"
preset: "Mac Server (universal)"
artifact_ext: ".app"
- os: windows-latest
export_name: "OpenChamp_Windows_Desktop.exe"
preset: "Windows Desktop"
artifact_ext: ".exe"
- os: macos-latest
export_name: "OpenChamp_macOS_Desktop.dmg"
preset: "macOS"
artifact_ext: ".dmg"
- os: ubuntu-latest
export_name: "OpenChamp_Linux_Desktop"
preset: "Linux"
artifact_ext: ""

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Godot
uses: chickensoft-games/setup-godot@v2
with:
version: ${{ env.GODOT_VERSION }}
use-mono: false
include-templates: true

- name: Create export output directory
run: mkdir -p build/exports

- name: Build Godot project
run: |
godot --headless --export-release "${{ matrix.preset }}" "build/exports/${{ matrix.export_name }}"

- name: Package build output
run: |
cd build/exports
if [[ "${{ runner.os }}" == "Windows" ]]; then
7z a -r "${{ matrix.export_name }}.zip" "${{ matrix.export_name }}"
else
tar -czf "${{ matrix.export_name }}.tar.gz" "${{ matrix.export_name }}"
fi
shell: bash

- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.export_name }}
path: build/exports/${{ matrix.export_name }}*
retention-days: 1

create-release:
needs: build
runs-on: ubuntu-latest
if: ${{ inputs.create_release == true }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: release-artifacts

- name: Generate Release Notes
run: |
# Get the current branch
BRANCH="${{ github.ref_name }}"

# Get recent commits
CHANGELOG=$(git log --pretty=format:"- %s (%an)" --no-merges -20)

# Create release notes
cat > release_notes.md << 'EOF'
# Release v${{ inputs.version }}

## Changes
$CHANGELOG

## Downloads
All builds are attached to this release.
EOF

- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: release-artifacts/**/*
body_path: release_notes.md
tag_name: v${{ inputs.version }}
draft: false
prerelease: ${{ contains(github.ref_name, 'alpha') || contains(github.ref_name, 'beta') }}
token: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_REPOSITORY: ${{ github.repository }}
152 changes: 152 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
name: Build and Release

on:
push:
tags:
- 'v*.*.*'

env:
GODOT_VERSION: 4.5.0
GODOT_MONO_VERSION: 4.5.0

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
export_name: "OpenChamp_Linux_Server"
preset: "Linux Server"
artifact_ext: ""
- os: windows-latest
export_name: "OpenChamp_Win_Server.exe"
preset: "Win Server(x86)"
artifact_ext: ".exe"
- os: macos-latest
export_name: "OpenChamp_MacOS_Server.app"
preset: "Mac Server (universal)"
artifact_ext: ".app"
- os: windows-latest
export_name: "OpenChamp_Windows_Desktop.exe"
preset: "Windows Desktop"
artifact_ext: ".exe"
- os: macos-latest
export_name: "OpenChamp_macOS_Desktop.dmg"
preset: "macOS"
artifact_ext: ".dmg"
- os: ubuntu-latest
export_name: "OpenChamp_Linux_Desktop"
preset: "Linux"
artifact_ext: ""

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Godot
uses: chickensoft-games/setup-godot@v2
with:
version: ${{ env.GODOT_VERSION }}
use-mono: false
include-templates: true

- name: Create export output directory
run: mkdir -p build/exports

- name: Build Godot project
run: |
godot --headless --export-release "${{ matrix.preset }}" "build/exports/${{ matrix.export_name }}"

- name: Package build output
run: |
cd build/exports
if [[ "${{ runner.os }}" == "Windows" ]]; then
7z a -r "${{ matrix.export_name }}.zip" "${{ matrix.export_name }}"
else
tar -czf "${{ matrix.export_name }}.tar.gz" "${{ matrix.export_name }}"
fi
shell: bash

- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.export_name }}
path: build/exports/${{ matrix.export_name }}*
retention-days: 1

generate-release-notes:
needs: build
runs-on: ubuntu-latest
outputs:
release_notes: ${{ steps.generate.outputs.release_notes }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Generate Release Notes
id: generate
run: |
# Get the tag name
TAG="${{ github.ref }}"
TAG="${TAG#refs/tags/}"

# Get the previous tag
PREVIOUS_TAG=$(git describe --tags --abbrev=0 "${TAG}^" 2>/dev/null || echo "")

# Generate changelog
if [ -z "$PREVIOUS_TAG" ]; then
CHANGELOG=$(git log --pretty=format:"- %s (%an)" --no-merges)
else
CHANGELOG=$(git log "${PREVIOUS_TAG}..${TAG}" --pretty=format:"- %s (%an)" --no-merges)
fi

# Create release notes
RELEASE_NOTES="# Release ${TAG}

## Changes
${CHANGELOG}

## Downloads
All builds are attached to this release."

# Output to file and env
echo "$RELEASE_NOTES" > release_notes.md
echo "release_notes<<EOF" >> $GITHUB_OUTPUT
echo "$RELEASE_NOTES" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

- name: Upload release notes artifact
uses: actions/upload-artifact@v4
with:
name: release-notes
path: release_notes.md
retention-days: 1

create-release:
needs: [build, generate-release-notes]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: release-artifacts

- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: release-artifacts/**/*
body_path: release-artifacts/release-notes/release_notes.md
draft: false
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') }}
token: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_REPOSITORY: ${{ github.repository }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Godot 4+ specific ignores
.godot/
/android/
.vscode/
.hidden/
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"godotTools.editorPath.godot4": "c:\\Users\\cmkrist\\Documents\\Godot 4.4\\Godot_v4.4-stable_win64.exe"
"godotTools.editorPath.godot4": "C:\\Users\\CMKrist\\Desktop\\Godot_v4.5.1-stable_win64.exe\\Godot_v4.5.1-stable_win64.exe"
}
5 changes: 5 additions & 0 deletions ABILITY_NOTES
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# ABILITY NOTES
- When a player hits an ability key (1-4), the client emits a signal from the camera.
- The ingame.gd scene connects to this signal and handles sending the ability use to the server.
- The server receives the ability use request, validates it, and executes the ability on the Champion.
- The champion.gd script would contain the actual ability logic (damage, effects, cooldowns, etc.) and a scene if a projectile is required.
Binary file added ABILITY_NOTES.zip
Binary file not shown.
Loading
Loading