v1.8.0 #429

Merged
LukeGus merged 198 commits from dev-1.8.0 into main 2025-11-05 16:36:16 +00:00
Showing only changes of commit 77605c3165 - Show all commits

View File

@@ -421,12 +421,23 @@ jobs:
with: with:
path: artifacts path: artifacts
- name: Get latest release tag - name: Get latest release
id: get_release id: get_release
run: | run: |
LATEST_TAG=$(gh release list --repo ${{ github.repository }} --limit 1 | awk '{print $1}') echo "Fetching latest release from ${{ github.repository }}..."
echo "tag=$LATEST_TAG" >> $GITHUB_OUTPUT LATEST_RELEASE=$(gh release list --repo ${{ github.repository }} --limit 1 --json tagName,name,isLatest -q '.[0]')
echo "Latest release tag: $LATEST_TAG"
if [ -z "$LATEST_RELEASE" ]; then
echo "ERROR: No releases found in ${{ github.repository }}"
exit 1
fi
RELEASE_TAG=$(echo "$LATEST_RELEASE" | jq -r '.tagName')
RELEASE_NAME=$(echo "$LATEST_RELEASE" | jq -r '.name')
echo "tag=$RELEASE_TAG" >> $GITHUB_OUTPUT
echo "name=$RELEASE_NAME" >> $GITHUB_OUTPUT
echo "Latest release: $RELEASE_NAME ($RELEASE_TAG)"
env: env:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
@@ -437,6 +448,10 @@ jobs:
- name: Upload artifacts to latest release - name: Upload artifacts to latest release
run: | run: |
RELEASE_TAG="${{ steps.get_release.outputs.tag }}"
echo "Uploading artifacts to release: $RELEASE_TAG"
echo ""
cd artifacts cd artifacts
for dir in */; do for dir in */; do
echo "Processing directory: $dir" echo "Processing directory: $dir"
@@ -444,10 +459,14 @@ jobs:
for file in *; do for file in *; do
if [ -f "$file" ]; then if [ -f "$file" ]; then
echo "Uploading: $file" echo "Uploading: $file"
gh release upload ${{ steps.get_release.outputs.tag }} "$file" --repo ${{ github.repository }} --clobber gh release upload "$RELEASE_TAG" "$file" --repo ${{ github.repository }} --clobber
echo "✓ $file uploaded successfully"
fi fi
done done
cd .. cd ..
done done
echo ""
echo "All artifacts uploaded to: https://github.com/${{ github.repository }}/releases/tag/$RELEASE_TAG"
env: env:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}