-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (64 loc) · 2.16 KB
/
submit-develop.yml
File metadata and controls
77 lines (64 loc) · 2.16 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: 'Submit Develop'
on:
push:
branches: [ 'develop' ]
env:
GODOT_VERSION: 4.5
VERSION_FILE: project.godot
VERSION_REGEX: config\/version=\"\K[0-9.\-A-z]*
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v4
- name: Install Godot
uses: CapsCollective/godot-actions/install-godot@v1.2
with:
godot-version: ${{ env.GODOT_VERSION }}
install-templates: true
id: install-godot
- name: Open Godot editor for reimport
run: ${{ steps.install-godot.outputs.godot-executable }} --import --headless --verbose
- name: Apply version to export information
run: ${{ steps.install-godot.outputs.godot-executable }} --script scripts/apply_version.gd --headless
- name: Build and upload artifacts for all platforms
uses: CapsCollective/godot-actions/build-godot@v1.2
with:
godot-executable: ${{ steps.install-godot.outputs.godot-executable }}
generate-release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v4
- name: Extract version
uses: CapsCollective/version-actions/extract-version@v1.0
with:
version-file: ${{ env.VERSION_FILE }}
version-regex: ${{ env.VERSION_REGEX }}
id: extract-version
- name: Download macOS artifact
uses: actions/download-artifact@v4
with:
name: macos
path: artifacts/macos
- name: Download Windows artifact
uses: actions/download-artifact@v4
with:
name: windows
path: artifacts/windows
- name: Download Linux artifact
uses: actions/download-artifact@v4
with:
name: linux
path: artifacts/linux
- name: Tag and upload artifacts to release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.extract-version.outputs.version-string }}
commit: ${{ github.sha }}
allowUpdates: false
artifactErrorsFailBuild: true
prerelease: true
artifacts: artifacts/*/*