build-deploy-assets.yaml 722 B

123456789101112131415161718192021222324252627282930313233343536
  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@v4
  12. - name: Build
  13. run: |
  14. make all
  15. make html
  16. tar zcvf lkmpg-html.tar.gz ./html
  17. - name: Delete old release
  18. uses: cb80/delrel@latest
  19. with:
  20. tag: latest
  21. - name: Tag
  22. run: |
  23. git tag latest
  24. git push -f --tags
  25. - name: Release
  26. uses: softprops/action-gh-release@v0.1.15
  27. with:
  28. files: |
  29. lkmpg.pdf
  30. lkmpg-html.tar.gz
  31. tag_name: "latest"
  32. prerelease: true