Skip to content

Commit

Permalink
fix: satis build via GitHub workflow (#88)
Browse files Browse the repository at this point in the history
* fix: satis build missing template with generator version
  • Loading branch information
Vinai authored Aug 8, 2023
1 parent 69bf270 commit 4b97230
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion mageos.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<title>{{ name|default('Composer repository') }}</title>

<style type="text/css">
<style>
{% include 'build/style.css' %}
</style>
</head>
Expand Down

0 comments on commit 4b97230

Please sign in to comment.