Skip to content

Commit c1b77f6

Browse files
authored
use gh token (#2429)
1 parent 80b4f79 commit c1b77f6

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,11 @@ jobs:
1212
- uses: actions/checkout@v6
1313
- uses: actions/setup-node@v6
1414
with:
15-
node-version: 20
16-
- name: Add key
17-
env:
18-
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
19-
run: |
20-
mkdir -p ~/.ssh
21-
ssh-keyscan github.com >> ~/.ssh/known_hosts
22-
echo "${{ secrets.GH_PAGES_DEPLOY }}" > ~/.ssh/id_rsa
23-
chmod 600 ~/.ssh/id_rsa
24-
cat <<EOT >> ~/.ssh/config
25-
Host github.com
26-
HostName github.com
27-
IdentityFile ~/.ssh/id_rsa
28-
EOT
15+
node-version: 24
2916
- name: Release Documentation to GitHub Pages
3017
env:
31-
USE_SSH: true
32-
GIT_USER: gh-actions
18+
GIT_USER: x-access-token
19+
GIT_PASS: ${{ secrets.GITHUB_TOKEN }}
3320
run: |
3421
git config --global user.email "gh-actions@github.com"
3522
git config --global user.name "gh-actions"

0 commit comments

Comments
 (0)