From a9b0aea79ea9c9ae3ed876514ad67d1a565b697f Mon Sep 17 00:00:00 2001 From: krasjet Date: Tue, 1 Mar 2022 04:04:13 +0000 Subject: [PATCH] finish workflow setup --- .github/workflows/deploy.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6ee2a54..94444ff 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,6 +20,12 @@ jobs: - name: build site shell: bash run: mkdocs build --clean - - name: check + - name: deploy shell: bash - run: tree + run: | + cd site + git init + git add . + git -c "user.name=$GH_NAME" -c "user.email=$GH_EMAIL" commit -m "Auto Deployment" + git push -f -q "https://learnopengl-bot:$API_TOKEN@github.com/LearnOpenGL-CN/learnopengl-cn.github.io" master +