diff --git a/.github/deploy.sh b/.github/deploy.sh index 8007bc75cddd..16fccb961d7f 100644 --- a/.github/deploy.sh +++ b/.github/deploy.sh @@ -33,7 +33,4 @@ if git diff --exit-code --quiet; then exit 0 fi -git add . -git commit -m "Automatic deploy to GitHub Pages: ${SHA}" - -git push "$SSH_REPO" "$TARGET_BRANCH" +git diff diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index be40b27440d7..d5ce6d584d20 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,6 +6,7 @@ on: - master tags: - rust-1.** + pull_request: env: TARGET_BRANCH: 'gh-pages' @@ -35,6 +36,4 @@ jobs: echo "::set-env name=TAG_NAME::$TAG" - name: Deploy run: | - eval "$(ssh-agent -s)" - ssh-add - <<< "${{ secrets.DEPLOY_KEY }}" bash .github/deploy.sh