publish.yml 643 B

1234567891011121314151617181920212223242526272829303132
  1. name: Pages
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. build-deploy:
  8. runs-on: ubuntu-18.04
  9. steps:
  10. - uses: actions/checkout@v1
  11. - name: Setup Hugo
  12. uses: peaceiris/actions-hugo@v2
  13. with:
  14. hugo-version: '0.62.1'
  15. extended: true
  16. - name: Build
  17. run: hugo --minify
  18. - name: Deploy
  19. uses: easingthemes/ssh-deploy@v2.0.7
  20. env:
  21. SSH_PRIVATE_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
  22. ARGS: "-rltgoDzvO"
  23. SOURCE: ./public/
  24. REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
  25. REMOTE_USER: ${{ secrets.REMOTE_USER }}
  26. TARGET: ${{ secrets.REMOTE_TARGET }}