Advertisement
Guest User

gh-pages.yml

a guest
Feb 17th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. name: github pages
  2.  
  3. on:
  4. push:
  5. branches:
  6. - master
  7.  
  8. jobs:
  9. build-deploy:
  10. runs-on: ubuntu-18.04
  11. steps:
  12. - uses: actions/checkout@v1 # v2 does not have submodules option now
  13. # with:
  14. # submodules: true
  15.  
  16. - name: Setup Hugo
  17. uses: peaceiris/actions-hugo@v2
  18. with:
  19. hugo-version: '0.62.2'
  20. # extended: true
  21.  
  22. - name: Build
  23. run: hugo --minify
  24.  
  25. - name: Deploy
  26. uses: peaceiris/actions-gh-pages@v3
  27. with:
  28. deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
  29. publish_dir: ./public
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement