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: |
|
run: |
|
||||||
VERSION="${{ steps.metadata.outputs.version }}"
|
VERSION="${{ steps.metadata.outputs.version }}"
|
||||||
COMMIT="${{ steps.metadata.outputs.commit }}"
|
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 tag -a "$VERSION" -m "Release $VERSION (commit: $COMMIT)" HEAD
|
||||||
git push origin "$VERSION"
|
echo "✓ Local tag created: $VERSION"
|
||||||
echo "✓ Tag created: $VERSION"
|
|
||||||
|
git push origin "$VERSION" || echo "⚠️ Tag push failed, continuing..."
|
||||||
|
echo "✓ Tag creation complete"
|
||||||
|
|
||||||
- name: Create Gitea Release
|
- name: Create Gitea Release
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ steps.metadata.outputs.version }}
|
VERSION: ${{ steps.metadata.outputs.version }}
|
||||||
COMMIT: ${{ steps.metadata.outputs.commit }}
|
COMMIT: ${{ steps.metadata.outputs.commit }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
ARTIFACT="quantengine_${VERSION}.tar.gz"
|
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" \
|
gh release create "$VERSION" "$ARTIFACT" \
|
||||||
--title "Release $VERSION" \
|
--title "Release $VERSION" \
|
||||||
--notes "Release Version: $VERSION | Commit: ${COMMIT}"
|
--notes "Release Version: $VERSION | Commit: ${COMMIT}" \
|
||||||
|
--repo kjh2064/QuantEngineByItz
|
||||||
|
|
||||||
echo "✓ Release created: $VERSION"
|
echo "✓ Release created: $VERSION"
|
||||||
echo "✓ Artifact attached: $ARTIFACT"
|
echo "✓ Artifact attached: $ARTIFACT"
|
||||||
|
|||||||
Reference in New Issue
Block a user