build-deploy-assets.yaml 838 B

1234567891011121314151617181920212223242526272829303132333435363738
  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@v3.1.0
  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. fail-if-no-release: false
  23. tag: latest
  24. assets: |
  25. lkmpg.pdf
  26. lkmpg-html.tar.gz
  27. - name: Release
  28. uses: softprops/action-gh-release@v0.1.15
  29. with:
  30. files: |
  31. lkmpg.pdf
  32. lkmpg-html.tar.gz
  33. tag_name: "latest"
  34. prerelease: true