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 +