mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-22 15:46:59 +08:00
3c66525ef2
This ensures the latest commit message and timestamp can be correctly included in the release.
37 lines
726 B
YAML
37 lines
726 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@v3.1.0
|
|
- name: Build
|
|
run: |
|
|
make all
|
|
make html
|
|
tar zcvf lkmpg-html.tar.gz ./html
|
|
- name: Delete old release
|
|
uses: cb80/delrel@latest
|
|
with:
|
|
tag: latest
|
|
- name: Tag
|
|
run: |
|
|
git tag latest
|
|
git push -f --tags
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v0.1.15
|
|
with:
|
|
files: |
|
|
lkmpg.pdf
|
|
lkmpg-html.tar.gz
|
|
tag_name: "latest"
|
|
prerelease: true
|