experimental dotenv #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 🧵 Compose Projects | ||
|
Check failure on line 1 in .github/workflows/compose_projects.yml
|
||
| on: | ||
| workflow_call: | ||
| jobs: | ||
| retrieve-env: | ||
| name: 🔍 Load Environment variables | ||
| runs-on: "ubuntu-latest" | ||
| strategy: | ||
| fail-fast: false | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: aarcangeli/load-dotenv@v1 | ||
| filenames: build.env | ||
| compose-projects: | ||
| runs-on: "ubuntu-latest" | ||
| name: 🪡 Compose ${{ matrix.project.name }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| # TODO (Lilith): Input these values from a .env file in both justfile and here | ||
| project: | ||
| - name: threadbare | ||
| repo: ${{env.THREADBARE_REPO }} | ||
| ref: ${{env.THREADBARE_REF }} | ||
| - name: moddable-platformer | ||
| repo: ${{env.MODDABLE_PLATFORMER_REPO }} | ||
| ref: ${{env.MODDABLE_PLATFORMER_REF }} | ||
| steps: | ||
| - 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 | ||