You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.yml 533B

1234567891011121314151617181920212223242526272829
  1. name: CI/CD
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths-ignore:
  7. - README.md
  8. jobs:
  9. deploy:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v2
  13. with:
  14. submodules: true
  15. - name: Setup Hugo
  16. uses: peaceiris/actions-hugo@v2
  17. - name: Build
  18. run: hugo --minify
  19. - name: Deploy
  20. uses: peaceiris/actions-gh-pages@v3
  21. with:
  22. github_token: ${{ secrets.GITHUB_TOKEN }}
  23. publish_dir: ./public
  24. cname: blog.ojizero.tech