From 4b97230f0902367c018874da857bcbc53cfeca1c Mon Sep 17 00:00:00 2001 From: Vinai Kopp Date: Tue, 8 Aug 2023 11:30:54 +0200 Subject: [PATCH] fix: satis build via GitHub workflow (#88) * fix: satis build missing template with generator version --- .github/workflows/deploy.yml | 5 +++++ mageos.html.twig | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 234e164..6ae1d6d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -72,7 +72,12 @@ jobs: name: "Configure satis repository URL so composer knows where to download packages from" - run: cat <<< $(jq '."output-dir" = "../build" | .repositories[0].url = "../build/packages"' /tmp/satis.json) > /tmp/satis.json name: "Tell satis where to find the generated packages" + - run: | + cp mageos.html.twig satis/views/mageos.html.twig + jq -r .version package.json > satis/views/version + name: "Add generator version number to Satis HTML" - run: cd satis && bin/satis build /tmp/satis.json ../build && cd - + name: "Run satis" - run: cd satis && node ../bin/set-satis-output-url-prefix.js --satisOutputDir=../build --repoUrl="${{ env.repo }}" && cd - name: "Fix path to packages in the packages.json satis created" diff --git a/mageos.html.twig b/mageos.html.twig index 52caf2c..702f724 100644 --- a/mageos.html.twig +++ b/mageos.html.twig @@ -10,7 +10,7 @@ {{ name|default('Composer repository') }} -