update
This commit is contained in:
parent
1f943a70e7
commit
ed34adafbb
|
@ -4,6 +4,7 @@ name: slitaz-5.0
|
||||||
|
|
||||||
env:
|
env:
|
||||||
UPLOAD_RELEASE: true
|
UPLOAD_RELEASE: true
|
||||||
|
UPLOAD_artifact: false
|
||||||
TZ: Asia/Shanghai
|
TZ: Asia/Shanghai
|
||||||
#on:
|
#on:
|
||||||
# push:
|
# push:
|
||||||
|
@ -103,8 +104,9 @@ jobs:
|
||||||
cp -a ./slitaz5.0-rolling-core32-cn.iso slitaz-artifact/
|
cp -a ./slitaz5.0-rolling-core32-cn.iso slitaz-artifact/
|
||||||
cp -a ./slitaz5-core64-cn-with-docker.iso slitaz-artifact/
|
cp -a ./slitaz5-core64-cn-with-docker.iso slitaz-artifact/
|
||||||
|
|
||||||
- name: Deliver package
|
- name: upload to artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
if: env.UPLOAD_artifact == 'true' && !cancelled()
|
||||||
with:
|
with:
|
||||||
name: slitaz5-rolling-core64
|
name: slitaz5-rolling-core64
|
||||||
path: slitaz-artifact/
|
path: slitaz-artifact/
|
||||||
|
@ -136,6 +138,20 @@ jobs:
|
||||||
body_path: release.txt
|
body_path: release.txt
|
||||||
files: slitaz-artifact/*
|
files: slitaz-artifact/*
|
||||||
|
|
||||||
|
- name: Delete workflow runs
|
||||||
|
uses: GitRML/delete-workflow-runs@main
|
||||||
|
with:
|
||||||
|
retain_days: 1
|
||||||
|
keep_minimum_runs: 3
|
||||||
|
|
||||||
|
- name: Remove old Releases
|
||||||
|
uses: dev-drprasad/delete-older-releases@v0.1.0
|
||||||
|
if: env.UPLOAD_RELEASE == 'true' && !cancelled()
|
||||||
|
with:
|
||||||
|
keep_latest: 3
|
||||||
|
delete_tags: true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# - name: Upload Release Asset
|
# - name: Upload Release Asset
|
||||||
# id: upload-release-asset
|
# id: upload-release-asset
|
||||||
# uses: actions/upload-release-asset@v1
|
# uses: actions/upload-release-asset@v1
|
||||||
|
|
Loading…
Reference in New Issue