From 82f9d3c78d1f9d2d39da77be8cb3d909a1571478 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Fri, 2 Dec 2022 20:54:04 +0300 Subject: [PATCH] Use deploy keys instead of user token for pushing --- .github/workflows/docs.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a573ccb..525cb9f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -29,6 +29,11 @@ jobs: mkdir -p ./site/docs/color cp -r ./_docs/* ./site/docs/color/ + - name: Add Private Key To SSH Agent + uses: webfactory/ssh-agent@v0.7.0 + with: + ssh-private-key: ${{ secrets.RGBCUBE_GITHUB_IO_PRIVATE_KEY }} + - name: Push Docs To GitHub continue-on-error: true run: | @@ -39,4 +44,4 @@ jobs: git add . git commit -m "Deploy color.v docs" - git push https://RGBCube:${{ secrets.GH_TOKEN }}@github.com/RGBCube/rgbcube.github.io master + git push git@github.com:RGBCube/rgbcube.github.io master