-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (45 loc) · 1.85 KB
/
prepare_composite.yml
File metadata and controls
46 lines (45 loc) · 1.85 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
name: 🚀 Prepare Windows-Ready Projects
on:
workflow_call:
# Endless has requested a special version of moddable-platformer with:
# 1. Patchwork installed
# 2. Godot for Windows installed in godot_editor/
# 3. Launch and update scripts from LilithSilver/patchwork-update-script
# moddable-platformer-with-patchwork already provides 1, so we just need to handle 2 and 3
prepare-moddable-platformer-composite:
runs-on: ubuntu-latest
name: ✉️ Release ${{ matrix.artifact }}
steps:
- name: Acquire moddable-platformer-with-patchwork
uses: actions/download-artifact@v4
with:
name: moddable-platformer-with-patchwork
path: ${{ github.workspace }}
- name: Acquire godot-windows
uses: actions/download-artifact@v4
with:
name: godot-with-patchwork-windows
path: ${{ github.workspace }}
- name: Copy Godot into moddable-platformer
run: |
mkdir moddable-platformer-with-patchwork/godot_editor
cp godot-with-patchwork-windows/* moddable-platformer-with-patchwork/godot_editor
- name: Checkout update scripts
uses: actions/checkout@v6
with:
fetch-depth: 0
path: patchwork-update-script
repository: LilithSilver/patchwork-update-script
- name: Copy batch and ps1 files
run: |
mkdir moddable-platformer-with-patchwork/godot_editor
cp patchwork-update-script/*.{cmd,ps1} moddable-platformer-with-patchwork
- name: Merge .gitignore
run: cat patchwork-update-script/.gitignore >> moddable-platformer-with-patchwork/.gitignore
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: moddable-platformer-windows-ready
path: |
moddable-platformer-with-patchwork/*
if-no-files-found: error