1
0

generate_doc.yml 793 B

12345678910111213141516171819202122232425262728293031323334353637
  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@v1
  28. with:
  29. files: |
  30. lkmpg.pdf
  31. lkmpg-html.tar.gz
  32. tag_name: "latest"
  33. prerelease: true