Skip to content

Commit 4d89db5

Browse files
author
Krzysztof
authored
chore: change settings for gh deployment (#395)
1 parent b03af1a commit 4d89db5

File tree

2 files changed

+4
-22
lines changed

2 files changed

+4
-22
lines changed

.github/workflows/website-deployment.yml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,13 @@ jobs:
2222
- name: Install dependencies
2323
if: steps.cache.outputs.cache-hit != 'true'
2424
run: yarn install --frozen-lockfile --cwd ./website
25-
- name: Add ssh keys
26-
env:
27-
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
28-
run: |
29-
mkdir -p ~/.ssh
30-
ssh-keyscan github.com >> ~/.ssh/known_hosts
31-
echo "${{ secrets.GH_PAGES_DEPLOY }}" > ~/.ssh/id_rsa
32-
chmod 600 ~/.ssh/id_rsa
33-
cat <<EOT >> ~/.ssh/config
34-
Host github.com
35-
HostName github.com
36-
IdentityFile ~/.ssh/id_rsa
37-
EOT
3825
- name: Release
3926
working-directory: ./website
40-
env:
41-
USE_SSH: true
42-
GIT_USER: git
43-
NAME: ${{ secrets.GH_PAGES_DEPLOY_NAME }}
44-
EMAIL: ${{ secrets.GH_PAGES_DEPLOY_EMAIL }}
4527
run: |
46-
git config --global user.email "$EMAIL"
47-
git config --global user.name "$NAME"
48-
yarn deploy
28+
git config --global user.name ${{ secrets.GH_DEPLOY_NAME }}
29+
git config --global user.email ${{ secrets.GH_DEPLOY_EMAIL }}
30+
echo "machine github.com login ${{ secrets.GH_DEPLOY_NAME }} password ${{ secrets.GH_DEPLOY_TOKEN }}" > ~/.netrc
31+
GIT_USER=${{ secrets.GH_DEPLOY_NAME }} yarn run deploy
4932
5033
5134

website/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
Built using [Docusaurus 2](https://v2.docusaurus.io/).
44

5-
65
## Development
76

87
### Installation

0 commit comments

Comments
 (0)