mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-29 04:10:24 +08:00
76c7b0edbd
The action we used to delete the old release somehow cannot find the release tag in forked repo and cause the workflow failed. To solve this issue, simply setting `fail-if-no-release` option to false will do the trick.
39 lines
833 B
YAML
39 lines
833 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
|
|
fail-if-no-release: false
|
|
tag: latest
|
|
assets: |
|
|
lkmpg.pdf
|
|
lkmpg-html.tar.gz
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v0.1.8
|
|
with:
|
|
files: |
|
|
lkmpg.pdf
|
|
lkmpg-html.tar.gz
|
|
tag_name: "latest"
|
|
prerelease: true
|