Skip to content

Commit 1ce1f14

Browse files
committed
again
1 parent 11d4fbf commit 1ce1f14

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/publish-dists.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,23 @@ jobs:
2929
- name: Prepare dist branch
3030
run: |
3131
PACKAGE=${{ matrix.package }}
32-
BRANCH="dists/$PACKAGE"
32+
BRANCH="dists/wallet-$PACKAGE"
3333
PKG_DIR="packages/wallet/$PACKAGE"
3434
35-
git config user.name "github-actions"
36-
git config user.email "actions@github.com"
35+
mkdir -p /tmp/$PACKAGE
3736
38-
mkdir /tmp/$PACKAGE
39-
cp -r $PKG_DIR/* /tmp/$PACKAGE
40-
cp -r $PKG_DIR/.* /tmp/$PACKAGE 2>/dev/null || true
37+
# Copy files safely (excluding . and ..)
38+
shopt -s dotglob
39+
cp -r $PKG_DIR/* /tmp/$PACKAGE || true
4140
4241
cd /tmp/$PACKAGE
4342
git init
4443
git checkout -b $BRANCH
45-
git remote add origin https://github.com/${{ github.repository }}.git
44+
45+
git config user.name "github-actions"
46+
git config user.email "actions@github.com"
47+
4648
git add .
47-
git commit -m "Build: publish $PACKAGE dist"
49+
git commit -m "Build: publish @0xsequence/wallet-$PACKAGE dist"
50+
git remote add origin https://github.com/${{ github.repository }}.git
4851
git push -f origin HEAD:$BRANCH

0 commit comments

Comments
 (0)