-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support better window position memory
Add windows arm64 and linux arm64 build script Optimize some details
- Loading branch information
Showing
26 changed files
with
354 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,6 +84,70 @@ jobs: | |
path: ./dist | ||
overwrite: true | ||
|
||
changelog: | ||
runs-on: ubuntu-latest | ||
needs: [ build ] | ||
steps: | ||
- name: Checkout | ||
if: ${{ !contains(github.ref, '+') }} | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: refs/heads/main | ||
|
||
- name: Generate | ||
if: ${{ !contains(github.ref, '+') }} | ||
run: | | ||
tags=($(git tag --merged $(git rev-parse HEAD) --sort=-creatordate)) | ||
preTag=$(grep -oP '^## \K.*' CHANGELOG.md | head -n 1) | ||
currentTag="" | ||
for ((i = 0; i <= ${#tags[@]}; i++)); do | ||
if (( i < ${#tags[@]} )); then | ||
tag=${tags[$i]} | ||
else | ||
tag="" | ||
fi | ||
if [ -n "$currentTag" ]; then | ||
if [ "$(echo -e "$currentTag\n$preTag" | sort -V | head -n 1)" == "$currentTag" ]; then | ||
break | ||
fi | ||
fi | ||
if [ -n "$currentTag" ]; then | ||
echo "## $currentTag" >> NEW_CHANGELOG.md | ||
echo "" >> NEW_CHANGELOG.md | ||
if [ -n "$tag" ]; then | ||
git log --pretty=format:"%B" "$tag..$currentTag" | awk 'NF {print "- " $0} !NF {print ""}' >> NEW_CHANGELOG.md | ||
else | ||
git log --pretty=format:"%B" "$currentTag" | awk 'NF {print "- " $0} !NF {print ""}' >> NEW_CHANGELOG.md | ||
fi | ||
echo "" >> NEW_CHANGELOG.md | ||
fi | ||
currentTag=$tag | ||
done | ||
cat CHANGELOG.md >> NEW_CHANGELOG.md | ||
cat NEW_CHANGELOG.md > CHANGELOG.md | ||
- name: Commit | ||
if: ${{ !contains(github.ref, '+') }} | ||
run: | | ||
git add CHANGELOG.md | ||
if ! git diff --cached --quiet; then | ||
echo "Commit pushing" | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "chen08209" | ||
git commit -m "Update changelog" | ||
git push | ||
if [ $? -eq 0 ]; then | ||
echo "Push succeeded" | ||
else | ||
echo "Push failed" | ||
exit 1 | ||
fi | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
upload: | ||
permissions: write-all | ||
needs: [ build ] | ||
|
@@ -177,4 +241,5 @@ jobs: | |
user-email: 'github-actions[bot]@users.noreply.github.com' | ||
target-branch: action-pr | ||
commit-message: Update from ${{ github.ref_name }} | ||
target-directory: /tmp/ | ||
target-directory: /tmp/ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.