Skip to content

Commit

Permalink
feat: add team ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
DaiQiangReal committed Mar 5, 2025
1 parent e043919 commit 59c461c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ jobs:
name: 'publish a new version'
runs-on: ubuntu-latest
steps:
- name: gen token
run: |
echo $SEMI_TEAM_PRIVATE_KEY > ~/.ssh/ssh-ed25519
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
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}

- name: Use Node.js 20
uses: actions/setup-node@v4
Expand All @@ -39,9 +43,6 @@ jobs:
git config --global user.name 'semi-team'
git config --global user.email '[email protected]'
mkdir ~/.ssh
echo $SEMI_TEAM_PRIVATE_KEY > ~/.ssh/ssh-ed25519
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
node scripts/sitemap_update.js
if [ -n "$(git status --porcelain)" ]; then
echo "there are changes";
Expand Down

0 comments on commit 59c461c

Please sign in to comment.