[当我使用GitHub Actions功能时,它报告Build and Deploy错误:
Run renzhaosy/hexo-deploy-action@master
env:
PERSONAL_TOKEN:
PUBLISH_REPOSITORY: dipinxian/dipinxian.github.io
BRANCH: master
PUBLISH_DIR: ./public
/usr/bin/docker run --name af96b4eeb7a6302a0a421582dce43236b880a1_a6e7e6 --label af96b4 --workdir /github/workspace --rm -e PERSONAL_TOKEN -e PUBLISH_REPOSITORY -e BRANCH -e PUBLISH_DIR -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e GITHUB_ACTIONS=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/dipinxin.github.io/dipinxin.github.io":"/github/workspace" af96b4:eeb7a6302a0a421582dce43236b880a1
您必须为该操作提供个人访问令牌或GitHub令牌密钥才能进行部署。
##[error]Docker run failed with exit code 1
请尝试添加安全令牌,并在工作流yaml文件中使用它。enter image description here