Browse Source

feat: add team ssh

DaiQiangReal 8 months ago
parent
commit
6901d6e6cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .github/workflows/publish.yml

+ 1 - 1
.github/workflows/publish.yml

@@ -16,6 +16,7 @@ jobs:
               run: |
               run: |
                   git config --global user.name 'semi-team'
                   git config --global user.name 'semi-team'
                   git config --global user.email '[email protected]'
                   git config --global user.email '[email protected]'
+                  mkdir ~/.ssh
                   echo $SEMI_TEAM_PRIVATE_KEY > ~/.ssh/ssh-ed25519
                   echo $SEMI_TEAM_PRIVATE_KEY > ~/.ssh/ssh-ed25519
                   echo $SEMI_TEAM_PRIVATE_KEY_PUB > ~/.ssh/ssh-ed25519.pub
                   echo $SEMI_TEAM_PRIVATE_KEY_PUB > ~/.ssh/ssh-ed25519.pub
                   echo "Host\n  github.com\n  AddKeysToAgent yes\n  UseKeychain yes\n  IdentityFile ~/.ssh/id_ed25519" > ~/.ssh/config
                   echo "Host\n  github.com\n  AddKeysToAgent yes\n  UseKeychain yes\n  IdentityFile ~/.ssh/id_ed25519" > ~/.ssh/config
@@ -44,7 +45,6 @@ jobs:
               run: |
               run: |
                   git config --global user.name 'semi-team'
                   git config --global user.name 'semi-team'
                   git config --global user.email '[email protected]'
                   git config --global user.email '[email protected]'
-                  mkdir ~/.ssh
                   node scripts/sitemap_update.js
                   node scripts/sitemap_update.js
                   if [ -n "$(git status --porcelain)" ]; then
                   if [ -n "$(git status --porcelain)" ]; then
                     echo "there are changes";
                     echo "there are changes";