diff --git a/.gitea/workflows/prepare-release.yml b/.gitea/workflows/prepare-release.yml index 39e7951a..c35d750d 100644 --- a/.gitea/workflows/prepare-release.yml +++ b/.gitea/workflows/prepare-release.yml @@ -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"