Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 4 additions & 21 deletions .github/workflows/website-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,13 @@ jobs:
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --cwd ./website
- name: Add ssh keys
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
echo "${{ secrets.GH_PAGES_DEPLOY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
cat <<EOT >> ~/.ssh/config
Host github.com
HostName github.com
IdentityFile ~/.ssh/id_rsa
EOT
- name: Release
working-directory: ./website
env:
USE_SSH: true
GIT_USER: git
NAME: ${{ secrets.GH_PAGES_DEPLOY_NAME }}
EMAIL: ${{ secrets.GH_PAGES_DEPLOY_EMAIL }}
run: |
git config --global user.email "$EMAIL"
git config --global user.name "$NAME"
yarn deploy
git config --global user.name ${{ secrets.GH_DEPLOY_NAME }}
git config --global user.email ${{ secrets.GH_DEPLOY_EMAIL }}
echo "machine github.com login ${{ secrets.GH_DEPLOY_NAME }} password ${{ secrets.GH_DEPLOY_TOKEN }}" > ~/.netrc
GIT_USER=${{ secrets.GH_DEPLOY_NAME }} yarn run deploy



1 change: 0 additions & 1 deletion website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

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


## Development

### Installation
Expand Down