Files
2024-07-20 15:46:46 +08:00

42 lines
1.5 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Release
on:
push:
tags:
- "v*"
jobs:
Release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@main
- run: |
DECADE_UI_VERSION=${GITHUB_REF_NAME/v/}
echo $DECADE_UI_VERSION > VERSION.md
DECADE_UI_UPDATE_DATE=$(date +'%Y-%m-%d')
echo $DECADE_UI_UPDATE_DATE >> VERSION.md
zip -9 -r -u decade-ui.zip *
cp decade-ui.zip decade-ui-no-dynamics.zip
zip -d decade-ui-no-dynamics.zip assets/dynamic/*
echo 有bug先检查其他扩展,不行再关闭UI重试,最后再联系作者。 > RELEASE.md
echo >> RELEASE.md
echo 反馈问题建议前往: >> RELEASE.md
echo >> RELEASE.md
echo https://github.com/Tipx-L/decade-ui/issues >> RELEASE.md
echo >> RELEASE.md
echo https://hub.fgit.cf/Tipx-L/decade-ui/issues (更容易访问) >> RELEASE.md
echo >> RELEASE.md
echo 当前版本:$DECADE_UI_VERSION(Show-K修复版) >> RELEASE.md
echo >> RELEASE.md
echo 更新日期:$DECADE_UI_UPDATE_DATE >> RELEASE.md
echo >> RELEASE.md
while IFS= read -r line || [ "$line" ]; do echo $line >> RELEASE.md; done < CHANGELOG.md
- uses: softprops/action-gh-release@master
with:
body_path: RELEASE.md
files: |
decade-ui.zip
decade-ui-no-dynamics.zip
RELEASE.md
name: 十周年UI ${{ github.ref_name }}