From 8d95277361db10c111b1fb058403d14907e3207d Mon Sep 17 00:00:00 2001 From: Krzysztof Borowy Date: Sat, 27 Jun 2020 20:43:50 +0200 Subject: [PATCH] chore: change settings for gh deployment --- .github/workflows/website-deployment.yml | 25 ++++-------------------- website/README.md | 1 - 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/.github/workflows/website-deployment.yml b/.github/workflows/website-deployment.yml index 2cd36276..69503fa0 100644 --- a/.github/workflows/website-deployment.yml +++ b/.github/workflows/website-deployment.yml @@ -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 <> ~/.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 diff --git a/website/README.md b/website/README.md index 6729767f..4bea35e3 100644 --- a/website/README.md +++ b/website/README.md @@ -2,7 +2,6 @@ Built using [Docusaurus 2](https://v2.docusaurus.io/). - ## Development ### Installation