-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (42 loc) · 1.46 KB
/
build.yml
File metadata and controls
49 lines (42 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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/godot-export@v7.0.0
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.stable.so_reuseaddr.zip
relative_project_path: ./
archive_output: true
cache: true
presets_to_export: windows.x86_64, macOS.universal, linux.x86.64
- name: Create git tag
run: |
git tag ${{ inputs.version }}
git push origin ${{ inputs.version }}
- name: Create GitHub Release
uses: ncipollo/release-action@v1.14.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ inputs.version }}
name: ${{ inputs.version }}
generateReleaseNotes: true
artifacts: ${{ steps.export.outputs.archive_directory }}/*