-
Notifications
You must be signed in to change notification settings - Fork 4
70 lines (66 loc) · 2.01 KB
/
compose_projects.yml
File metadata and controls
70 lines (66 loc) · 2.01 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
name: 🧵 Compose Projects
on:
workflow_call:
jobs:
retrieve-env:
name: 🔍 Load Environment variables
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
outputs:
env: ${{ steps.dotenv.outputs }}
steps:
- uses: actions/checkout@v4
- id: dotenv
uses: falti/dotenv-action@v1.1.5
with:
path: build.env
log-variables: true
keys-case: bypass
- id: logstuff
shell: sh
run: |
echo ${{ toJSON(steps.dotenv.outputs) }}
compose-projects:
needs: [retrieve-env]
runs-on: "ubuntu-latest"
name: 🪡 Compose ${{ matrix.project.name }}
strategy:
fail-fast: false
matrix:
project:
- name: threadbare
repo: ${{ needs.retrieve-env.outputs.THREADBARE_REPO }}
ref: ${{ needs.retrieve-env.outputs.THREADBARE_REF }}
- name: moddable-platformer
repo: ${{ needs.retrieve-env.outputs.MODDABLE_PLATFORMER_REPO }}
ref: ${{ needs.retrieve-env.outputs.MODDABLE_PLATFORMER_REF }}
steps:
- run: |
echo ${{ toJSON(needs) }}
shell: sh
- name: Checkout project
uses: actions/checkout@v4
with:
repository: ${{ matrix.project.repo }}
ref: ${{ matrix.project.ref }}
path: ${{ matrix.project.name }}
fetch-depth: 0
persist-credentials: false
- name: Download Patchwork
uses: actions/download-artifact@v7
with:
pattern: patchwork-godot-plugin
path: patchwork-godot-plugin
- name: Copy to addons
shell: sh
run: |
mkdir -p ${{ matrix.project.name }}/addons/patchwork |
cp -r patchwork-godot-plugin/* ${{ matrix.project.name }}/addons/patchwork
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.project.name }}-with-patchwork
path: |
${{ matrix.project.name }}
if-no-files-found: error