diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b1658087f9a..c65981a4350 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,12 +26,12 @@ jobs: - name: After success steps if: ${{ success() }} run: | - echo "COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV + echo "COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV + echo $COMMIT touch ./build/html/.nojekyll mkdir -p ~/.ssh echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa - ssh-keyscan github.com >> ~/.ssh/known_hosts echo -e "Host *\n\tStrictHostKeyChecking no\n" > ~/.ssh/config # git config --global core.sshCommand "ssh -i ~/.ssh/id_rsa -o UserKnownHostsFile=~/.ssh/known_hosts" if [ "${{ github.event_name }}" = "push" ] && [ "${{ github.ref }}" = "refs/heads/main" ]; then