File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments