-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (55 loc) · 1.73 KB
/
release.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: "godot-ci export"
on:
push:
branches:
- main
env:
GODOT_VERSION: 4.1.2
EXPORT_NAME: SmashEm
jobs:
export-windows:
name: Windows Export
runs-on: ubuntu-20.04
container:
image: barichello/godot-ci:4.1.2
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-tags: true
lfs: true
- name: Get current tag
id: current-tag
uses: WyriHaximus/[email protected]
with:
fallback: 0
prefix: v
- name: Increase tag version
id: next-tag
uses: WyriHaximus/[email protected]
with:
version: ${{ steps.current-tag.outputs.tag }}
strict: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/export_templates
cp -a /root/.local/share/godot/templates/. ~/.local/share/godot/export_templates/
mkdir -v -p ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
- name: Windows Build
run: |
mkdir -v -p build/windows
godot -v --headless --export-release "Windows Desktop" build/windows/$EXPORT_NAME.exe
pwd
ls
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: windows-${{ steps.semvers.outputs.v_major }}
path: build/windows/
if-no-files-found: error
- name: 'Create new milestone'
id: createmilestone
uses: "WyriHaximus/github-action-create-milestone@v1"
with:
title: ${{ steps.semvers.outputs.v_major }}