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.
 
 
 
 
 

41 rivejä
1.0 KiB

  1. name: Publish
  2. on:
  3. push:
  4. branches: [master, "@cbrown/743-mkdocs-site"]
  5. jobs:
  6. build:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/checkout@v2
  10. - name: Set up Python 3.8
  11. uses: actions/setup-python@v1
  12. with:
  13. python-version: 3.8
  14. - name: Setup Golang
  15. uses: actions/setup-go@v3
  16. with:
  17. go-version: '>=1.17.0'
  18. - name: Install round
  19. run: |
  20. go install github.com/mingrammer/round@latest
  21. - name: Install inkscape
  22. run: |
  23. sudo apt-get update && sudo apt-get install inkscape
  24. - name: Install python dependencies
  25. run: |
  26. python -m pip install --upgrade pip
  27. if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
  28. - name: Build
  29. run: |
  30. ./autogen.sh && mkdocs build -c -f mkdocs.yml
  31. - name: Publish
  32. uses: peaceiris/actions-gh-pages@v3
  33. with:
  34. github_token: ${{ secrets.GITHUB_TOKEN }}
  35. publish_dir: ./site