@@ -367,75 +367,37 @@ jobs:
367367 # Delete previous latest release (ignore errors if doesn't exist)
368368 gh release delete latest --yes 2>/dev/null || echo "No previous 'latest' release found"
369369 git push origin :refs/tags/latest 2>/dev/null || echo "No previous 'latest' tag found"
370-
371- - name : Create test release (not latest)
370+
371+ - name : Create 'latest' release
372372 if : env.SHOULD_BUILD == 'true'
373373 env :
374374 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
375375 run : |
376- echo "🚀 Creating test release..."
376+ echo "🚀 Creating 'latest' release..."
377377
378378 if [ "$ARTIFACT_COUNT" -eq 0 ]; then
379379 echo "❌ No artifacts to release!"
380380 exit 1
381381 fi
382382
383- # Create test release instead of "latest" to avoid conflicts
384- TIMESTAMP=$(date +%Y%m%d-%H%M%S)
385- RELEASE_TAG="test-feat-zip-script-${TIMESTAMP}"
386-
387- echo "📦 Creating test release: $RELEASE_TAG with $ARTIFACT_COUNT artifacts"
383+ echo "📦 Releasing $ARTIFACT_COUNT artifacts"
388384
389- # Create test release (not latest)
390- gh release create "$RELEASE_TAG" \
391- --title "Test Release - feat/zip-script " \
385+ # Create the latest release
386+ gh release create latest \
387+ --title "Auth0 AI Sample Artifacts - Latest " \
392388 --notes-file release_notes.md \
393- --prerelease \
389+ --latest \
394390 artifacts/*.zip
395391
396- echo "✅ Test release created!"
397- echo "🔗 Test download URLs:"
392+ echo "✅ Latest release created!"
393+ echo "🔗 Your download URLs are now active :"
398394
399395 for zip_file in artifacts/*.zip; do
400396 if [ -f "$zip_file" ]; then
401397 FILENAME=$(basename "$zip_file")
402- echo " https://github.com/${{ github.repository }}/releases/download/$RELEASE_TAG /$FILENAME"
398+ echo " https://github.com/${{ github.repository }}/releases/latest/download /$FILENAME"
403399 fi
404400 done
405-
406- echo ""
407- echo "🧪 This is a test release. Official releases coming soon"
408-
409- # - name: Create 'latest' release (for production)
410- # if: env.SHOULD_BUILD == 'true'
411- # env:
412- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
413- # run: |
414- # echo "🚀 Creating 'latest' release..."
415-
416- # if [ "$ARTIFACT_COUNT" -eq 0 ]; then
417- # echo "❌ No artifacts to release!"
418- # exit 1
419- # fi
420-
421- # echo "📦 Releasing $ARTIFACT_COUNT artifacts"
422-
423- # # Create the latest release that your download button expects
424- # gh release create latest \
425- # --title "Auth0 AI Samples - Latest" \
426- # --notes-file release_notes.md \
427- # --latest \
428- # artifacts/*.zip
429-
430- # echo "✅ Latest release created!"
431- # echo "🔗 Your download URLs are now active:"
432-
433- # for zip_file in artifacts/*.zip; do
434- # if [ -f "$zip_file" ]; then
435- # FILENAME=$(basename "$zip_file")
436- # echo " https://github.com/${{ github.repository }}/releases/latest/download/$FILENAME"
437- # fi
438- # done
439401
440402 - name : Skip build notification
441403 if : env.SHOULD_BUILD == 'false'
0 commit comments