ci: cleanup build job, follow old release naming

This commit is contained in:
鲁树人
2025-05-08 06:36:33 +09:00
parent 17cde2a1a5
commit 896ace49fd
4 changed files with 44 additions and 425 deletions

View File

@@ -73,6 +73,14 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout codebase
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup vars
id: vars
run: |
echo "::set-output name=git_tag::$(git describe --tags --always)"
- name: prepare archive
run: |
mkdir -p dist prepare
@@ -81,26 +89,8 @@ jobs:
with:
path: prepare
pattern: um-*
- name: prepare archive
run: |
for exe in prepare/*/um-*.exe; do
zip -9 -j "dist/$(basename "$exe" .exe).zip" "$exe"
rm -f "$exe"
done
for exe in prepare/*/um-*; do
tar \
--sort=name --format=posix \
--pax-option=exthdr.name=%d/PaxHeaders/%f \
--pax-option=delete=atime,delete=ctime \
--clamp-mtime --mtime='1970-01-01T00:00:00Z' \
--numeric-owner --owner=0 --group=0 \
--mode=0755 \
-cv \
-C "$(dirname "$exe")" \
"$(basename "$exe")" \
| gzip -9 > "dist/$(basename "$exe").tar.gz"
rm -f "$exe"
done
- name: repack archive
run: ./misc/repack.sh "${{ steps.vars.outputs.git_tag }}"
- name: Publish all-in-one archive
uses: christopherhx/gitea-upload-artifact@v4
with: