Skip to content

Commit ac140e5

Browse files
committed
Add subaction/matrix to update-dist and dev.Dockerfile
1 parent c29e11f commit ac140e5

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/update-dist.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ jobs:
4444
-
4545
name: Commit and push dist
4646
run: |
47-
if [ -n "$(git status --porcelain -- dist)" ]; then
47+
if [ -n "$(git status --porcelain -- dist subaction/matrix/dist)" ]; then
4848
(
4949
set -x
5050
git config user.name "github-actions[bot]"
5151
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
52-
git add dist
52+
git add dist subaction/matrix/dist
5353
git commit -m "chore: update generated content"
5454
git push
5555
)

dev.Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ RUN --mount=target=/context \
4040
--mount=type=cache,target=/src/node_modules <<EOT
4141
set -e
4242
rsync -a /context/. .
43-
rm -rf dist
44-
yarn run build
43+
rm -rf dist subaction/matrix/dist
44+
yarn workspaces foreach --all run build
4545
mkdir /out
4646
cp -r dist /out
47+
mkdir -p /out/subaction/matrix
48+
cp -r subaction/matrix/dist /out/subaction/matrix
4749
EOT
4850

4951
FROM scratch AS build-update
@@ -55,9 +57,9 @@ RUN --mount=target=/context \
5557
set -e
5658
rsync -a /context/. .
5759
git add -A
58-
rm -rf dist
60+
rm -rf dist subaction/matrix/dist
5961
cp -rf /out/* .
60-
if [ -n "$(git status --porcelain -- dist)" ]; then
62+
if [ -n "$(git status --porcelain -- dist subaction/matrix/dist)" ]; then
6163
echo >&2 'ERROR: Build result differs. Please build first with "docker buildx bake build"'
6264
git status --porcelain -- dist
6365
exit 1

0 commit comments

Comments
 (0)