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.

32 lines
828 B

  1. name: Documentation
  2. # This job builds and deploys documentation to github pages.
  3. # It runs on every push to master, and can be manually triggered.
  4. on:
  5. workflow_dispatch: # allow running workflow manually
  6. push:
  7. branches:
  8. - master
  9. jobs:
  10. build-and-deploy:
  11. runs-on: ubuntu-latest
  12. container:
  13. image: tendermintdev/docker-website-deployment
  14. steps:
  15. - name: Checkout 🛎️
  16. uses: actions/checkout@v2.3.1
  17. with:
  18. persist-credentials: false
  19. fetch-depth: 0
  20. - name: Install and Build 🔧
  21. run: |
  22. apk add rsync
  23. make build-docs
  24. - name: Deploy 🚀
  25. uses: JamesIves/github-pages-deploy-action@4.0.0
  26. with:
  27. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  28. BRANCH: gh-pages
  29. FOLDER: ~/output