Skip to content

Commit 4e8a65d

Browse files
authored
Merge pull request #12 from SpectrumPro/Husky-Devel-patch-1
Create godot-export.yml
2 parents ad8446e + 3b61f47 commit 4e8a65d

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/godot-export.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Whenever a tag push matching pattern "v*" then run the job
2+
on:
3+
push:
4+
tags:
5+
- "v*"
6+
7+
jobs:
8+
# job id, can be anything
9+
export_game:
10+
# Always use ubuntu-latest for this action
11+
runs-on: ubuntu-latest
12+
# Add permission for release creation. Can be made narrower according to your needs
13+
permissions: write-all
14+
# Job name, can be anything
15+
name: Export Spectrum code
16+
steps:
17+
# Always include the checkout step so that
18+
# your project is available for Godot to export
19+
- name: checkout
20+
uses: actions/[email protected]
21+
22+
- name: export Spectrum
23+
id: export
24+
# Use latest version (see releases for all versions)
25+
uses: firebelley/[email protected]
26+
with:
27+
# Defining all the required inputs
28+
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.0/Godot_v4.0-stable_linux.x86_64.zip
29+
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.0/Godot_v4.0-stable_export_templates.tpz
30+
relative_project_path: ./
31+
archive_output: true
32+
33+
# This release action has worked well for me. However, you can most likely use any release action of your choosing.
34+
# https://github.com/ncipollo/release-action
35+
- name: create release
36+
uses: ncipollo/[email protected]
37+
with:
38+
token: ${{ secrets.GITHUB_TOKEN }}
39+
generateReleaseNotes: true
40+
tag: ${{ github.ref_name }}
41+
artifacts: ${{ steps.export.outputs.archive_directory }}/*

0 commit comments

Comments
 (0)