jobs: build: runs-on:ubuntu-latest name:Ajobtodeployblog. steps: -name:Checkout uses:actions/checkout@v2 with: submodules:true # Caching dependencies to speed up workflows. (GitHub will remove any cache entries that have not been accessed in over 7 days.) -name:Cachenodemodules uses:actions/cache@v1 id:cache with: path:node_modules key:${{runner.os}}-node-${{hashFiles('**/package-lock.json')}} restore-keys:| ${{ runner.os }}-node- -name:InstallDependencies if:steps.cache.outputs.cache-hit!='true' run:npmci # Deploy hexo blog website. -name:Deploy id:deploy uses:sma11black/hexo-action@v1.0.1 with: user_name:robinchin user_email:chin_chin0110@hotmail.com deploy_key:${{secrets.DEPLOY_KEY}}#Deploy_KEY in github.io Settings # Use the output from the `deploy` step(use for test action) -name:Gettheoutput run:| echo"${{ steps.deploy.outputs.notify }}"