generate_doc.yaml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. name: build-deploy-assets
  2. on:
  3. push:
  4. branches: [ master ]
  5. workflow_dispatch:
  6. jobs:
  7. build:
  8. runs-on: ubuntu-latest
  9. container: twtug/lkmpg
  10. steps:
  11. - uses: actions/checkout@v2
  12. - name: Build
  13. run: |
  14. make all
  15. make html
  16. tar zcvf lkmpg-html.tar.gz ./html
  17. - name: Delete old release asset
  18. uses: mknejp/delete-release-assets@v1
  19. with:
  20. token: ${{ github.token }}
  21. fail-if-no-assets: false
  22. tag: latest
  23. assets: |
  24. lkmpg.pdf
  25. lkmpg-html.tar.gz
  26. - name: Release
  27. uses: softprops/action-gh-release@v0.1.8
  28. with:
  29. files: |
  30. lkmpg.pdf
  31. lkmpg-html.tar.gz
  32. tag_name: "latest"
  33. prerelease: true
  34. coding_style:
  35. runs-on: ubuntu-20.04
  36. steps:
  37. - name: checkout code
  38. uses: actions/checkout@v2
  39. - name: style check
  40. run: |
  41. sudo apt-get install -q -y clang-format-11
  42. sh .ci/check-format.sh
  43. shell: bash