lkmpg/.github/workflows/generate_doc.yml
Jerry Wang 937acfa0d7 Publish GitHub Page with GitHub Action
Add a new Github Action to publish to the GitHub page. Use twtug/lkmpg
image for reproducibility.

Ref:
- sysprog21#27
- https://github.com/TeXtw/docker-lkmpg
2021-08-02 06:22:29 +01:00

38 lines
793 B
YAML

name: build-deploy-assets
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container: twtug/lkmpg
steps:
- uses: actions/checkout@v2
- name: Build
run: |
make all
make html
tar zcvf lkmpg-html.tar.gz ./html
- name: Delete old release asset
uses: mknejp/delete-release-assets@v1
with:
token: ${{ github.token }}
fail-if-no-assets: false
tag: latest
assets: |
lkmpg.pdf
lkmpg-html.tar.gz
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
lkmpg.pdf
lkmpg-html.tar.gz
tag_name: "latest"
prerelease: true