Skip to content

Build and Release Spectrum Client #81

Build and Release Spectrum Client

Build and Release Spectrum Client #81

Workflow file for this run

name: Build and Release Spectrum Client
on:
workflow_dispatch:
inputs:
version:
description: "Version tag to release (e.g. v1.2.3)"
required: true
type: string
jobs:
export_spectrum:
name: Build Spectrum Client
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
lfs: true
fetch-depth: 0
- name: Export Spectrum
id: export
uses: firebelley/[email protected]
with:
godot_executable_download_url: https://github.com/not-my-username/godot/releases/download/4.5.2-so_reusraddr/godot.linuxbsd.editor.x86_64.zip
godot_export_templates_download_url: https://github.com/not-my-username/godot/releases/download/4.5.2-so_reusraddr/4.5.2.stablereuseaddr.zip
relative_project_path: ./
archive_output: true
cache: true
presets_to_export: windows.x86_64, macOS.universal, linux.x86.64
- name: Rename Archives
run: |
mv linux.x86_64.zip SpectrumClient.x86_64.linux.${{inputs.version}}.zip
mv windows.x86_64.zip SpectrumClient.x86_64.windows.${{inputs.version}}.zip
mv macos.universal.zip SpectrumClient.universal.macos.${{inputs.version}}.zip
- name: Create git tag
run: |
git tag ${{ inputs.version }}
git push origin ${{ inputs.version }}
- name: Create GitHub Release
uses: ncipollo/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ inputs.version }}
name: ${{ inputs.version }}
generateReleaseNotes: true
artifacts: ${{ steps.export.outputs.archive_directory }}/*