generated from outfrost/godot-template
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (36 loc) · 1.24 KB
/
build-release.yml
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
name: Build and release
on:
push:
tags:
- 'v[0-9]+.*'
jobs:
export_release_project:
# Always use ubuntu-latest for this action
runs-on: ubuntu-latest
name: Export and release project
steps:
- name: Checkout
uses: actions/checkout@v2.4.0
# Ensure that we get the entire project history
with:
fetch-depth: 0
- name: Copy sound stuff
run: ./copy_sound_stuff.sh
shell: bash
# Job creates release under the same version as the tag
- name: Get version from tag
id: tag_version
run: |
echo ::set-output name=TAG_VERSION::${GITHUB_REF#refs/tags/v}
- name: Export and release
uses: firebelley/godot-export@v3.0.0
with:
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/3.4.4/Godot_v3.4.4-stable_linux_headless.64.zip
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/3.4.4/Godot_v3.4.4-stable_export_templates.tpz
relative_project_path: ./
use_preset_export_path: true
create_release: true
generate_release_notes: true
base_version: ${{ steps.tag_version.outputs.TAG_VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}