Skip to content

Commit c0be50a

Browse files
author
Liam Sherwin
committed
Updated AutoBuild settings
1 parent a865ed3 commit c0be50a

File tree

2 files changed

+468
-73
lines changed

2 files changed

+468
-73
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
1-
name: Build Godot Project
1+
name: Build and Release Spectrum Client
22

33
on:
4-
push: {}
5-
pull_request: {}
4+
push:
5+
tags:
6+
- "v*"
67

78
jobs:
8-
Godot:
9+
export_spectrum:
10+
name: Build Spectrum Client
911
runs-on: ubuntu-latest
10-
strategy:
11-
matrix:
12-
platform: [win64, linux/X11, macOS]
12+
permissions: write-all
13+
1314
steps:
14-
- uses: actions/checkout@v2
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
1517
with:
1618
lfs: true
17-
- name: Build
18-
id: build
19-
uses: manleydev/build-godot-action@v1.4.1
19+
20+
- name: Export Spectrum
21+
id: export
22+
uses: firebelley/godot-export@v6.0.0
2023
with:
21-
name: Spectrum
22-
preset: ${{ matrix.platform }}
23-
debugMode: "false"
24-
- name: Upload Artifact
25-
uses: actions/upload-artifact@v4
24+
godot_executable_download_url: https://github.com/godotengine/godot-builds/releases/download/4.4.1-stable/Godot_v4.4.1-stable_linux.x86_64.zip
25+
godot_export_templates_download_url: https://github.com/godotengine/godot-builds/releases/download/4.4.1-stable/Godot_v4.4.1-stable_export_templates.tpz
26+
relative_project_path: ./
27+
archive_output: true
28+
presets_to_export: Windows, Linux, macOS
29+
30+
- name: Create GitHub Release
31+
uses: ncipollo/release-action@v1.14.0
2632
with:
27-
name: Spectrum - ${{ matrix.platform }}
28-
path: ${{ github.workspace }}/${{ steps.build.outputs.build }}
33+
token: ${{ secrets.GITHUB_TOKEN }}
34+
generateReleaseNotes: true
35+
tag: ${{ github.ref_name }}
36+
artifacts: ${{ steps.export.outputs.archive_directory }}/*
37+

0 commit comments

Comments
 (0)