mirror of
https://github.com/derrod/legendary.git
synced 2026-07-30 18:09:03 +00:00
ci: repackage for public github release
This commit is contained in:
parent
0da024ef14
commit
ce2bd87261
33
.github/workflows/python.yml
vendored
33
.github/workflows/python.yml
vendored
|
|
@ -106,7 +106,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment:
|
environment:
|
||||||
name: pypi
|
name: pypi
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: github.ref_type == 'tag'
|
||||||
env:
|
env:
|
||||||
UV_SYSTEM_PYTHON: 1
|
UV_SYSTEM_PYTHON: 1
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -130,10 +130,39 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: github.ref_type == 'tag'
|
||||||
needs: [pyinstaller, zipapp, pypi]
|
needs: [pyinstaller, zipapp, pypi]
|
||||||
steps:
|
steps:
|
||||||
- name: Download builds
|
- name: Download builds
|
||||||
uses: actions/download-artifact@v8
|
uses: actions/download-artifact@v8
|
||||||
|
|
||||||
|
- name: Setup distribution dir
|
||||||
|
run: mkdir dist
|
||||||
|
|
||||||
|
- name: Copy binaries
|
||||||
|
run: |
|
||||||
|
oses=("Linux" "macOS" "Windows")
|
||||||
|
arches=("X64" "ARM64")
|
||||||
|
for os in ${oses[@]}; do
|
||||||
|
for arch in ${arches[@]}; do
|
||||||
|
file="./$os-$arch-package/legendary"*
|
||||||
|
if [ -f $file ]; then
|
||||||
|
filename=$(basename $file)
|
||||||
|
name="${filename%%.*}"
|
||||||
|
ext=${filename#*.}
|
||||||
|
if [[ "$ext" == "$filename" ]]; then
|
||||||
|
ext=""
|
||||||
|
else
|
||||||
|
ext=".$ext"
|
||||||
|
fi
|
||||||
|
cp $file "./dist/legendary_${os,}_${arch,,}$ext"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
- uses: softprops/action-gh-release@v3
|
||||||
|
with:
|
||||||
|
draft: true
|
||||||
|
generate_release_notes: true
|
||||||
|
files: release/legendary*
|
||||||
|
|
||||||
Loading…
Reference in a new issue