nhmk/.github/workflows/build-deploy-assets.yaml

39 lines
838 B
YAML
Raw Normal View History

name: build-deploy-assets
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container: twtug/lkmpg
steps:
2022-12-10 06:11:09 +08:00
- uses: actions/checkout@v3.1.0
- 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
fail-if-no-release: false
tag: latest
assets: |
lkmpg.pdf
lkmpg-html.tar.gz
- name: Release
2022-12-10 06:11:09 +08:00
uses: softprops/action-gh-release@v0.1.15
with:
files: |
lkmpg.pdf
lkmpg-html.tar.gz
tag_name: "latest"
prerelease: true