debug: Add detailed logging to prepare-release.yml
- Add git config output for debugging tag creation - Add artifact existence check - Add gh CLI version check - Add explicit --repo parameter for gh release create - Make tag push non-fatal to continue workflow
This commit is contained in:
@@ -111,20 +111,39 @@ jobs:
|
||||
run: |
|
||||
VERSION="${{ steps.metadata.outputs.version }}"
|
||||
COMMIT="${{ steps.metadata.outputs.commit }}"
|
||||
|
||||
echo "Git config:"
|
||||
git config user.name
|
||||
git config user.email
|
||||
|
||||
git tag -a "$VERSION" -m "Release $VERSION (commit: $COMMIT)" HEAD
|
||||
git push origin "$VERSION"
|
||||
echo "✓ Tag created: $VERSION"
|
||||
echo "✓ Local tag created: $VERSION"
|
||||
|
||||
git push origin "$VERSION" || echo "⚠️ Tag push failed, continuing..."
|
||||
echo "✓ Tag creation complete"
|
||||
|
||||
- name: Create Gitea Release
|
||||
env:
|
||||
VERSION: ${{ steps.metadata.outputs.version }}
|
||||
COMMIT: ${{ steps.metadata.outputs.commit }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
run: |
|
||||
ARTIFACT="quantengine_${VERSION}.tar.gz"
|
||||
|
||||
echo "Checking artifact..."
|
||||
ls -lh "$ARTIFACT" || echo "⚠️ Artifact not found: $ARTIFACT"
|
||||
|
||||
echo ""
|
||||
echo "Checking gh CLI..."
|
||||
which gh || echo "⚠️ gh CLI not found"
|
||||
gh version || echo "⚠️ gh version failed"
|
||||
|
||||
echo ""
|
||||
echo "Creating release..."
|
||||
gh release create "$VERSION" "$ARTIFACT" \
|
||||
--title "Release $VERSION" \
|
||||
--notes "Release Version: $VERSION | Commit: ${COMMIT}"
|
||||
--notes "Release Version: $VERSION | Commit: ${COMMIT}" \
|
||||
--repo kjh2064/QuantEngineByItz
|
||||
|
||||
echo "✓ Release created: $VERSION"
|
||||
echo "✓ Artifact attached: $ARTIFACT"
|
||||
|
||||
Reference in New Issue
Block a user