2021-08-01 19:39:12 +08:00
|
|
|
name: build-deploy-assets
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2021-08-02 05:51:00 +08:00
|
|
|
container: twtug/lkmpg
|
2021-08-01 19:39:12 +08:00
|
|
|
|
|
|
|
steps:
|
2023-09-18 02:05:28 +08:00
|
|
|
- uses: actions/checkout@v4
|
2021-08-01 19:39:12 +08:00
|
|
|
- name: Build
|
2021-08-02 05:51:00 +08:00
|
|
|
run: |
|
|
|
|
make all
|
|
|
|
make html
|
|
|
|
tar zcvf lkmpg-html.tar.gz ./html
|
2023-07-03 09:47:24 +08:00
|
|
|
- name: Delete old release
|
|
|
|
uses: cb80/delrel@latest
|
|
|
|
with:
|
|
|
|
tag: latest
|
|
|
|
- name: Tag
|
|
|
|
run: |
|
|
|
|
git tag latest
|
|
|
|
git push -f --tags
|
2021-08-01 19:39:12 +08:00
|
|
|
- name: Release
|
2024-10-05 11:49:44 +08:00
|
|
|
uses: softprops/action-gh-release@v2
|
2021-08-01 19:39:12 +08:00
|
|
|
with:
|
2021-08-02 05:51:00 +08:00
|
|
|
files: |
|
|
|
|
lkmpg.pdf
|
|
|
|
lkmpg-html.tar.gz
|
2021-08-01 19:39:12 +08:00
|
|
|
tag_name: "latest"
|
|
|
|
prerelease: true
|