Build and Release Spectrum Client #97
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: | | |
| cd ${{ steps.export.outputs.archive_directory }} | |
| 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 }}/* | |