Skip to content

Commit 3341901

Browse files
committed
refactor: Consolidate publish workflows into single publish-nuget.yml
- Remove redundant publish-all.yml workflow - Add publish-summary job to publish-nuget.yml - Consolidate all publishing functionality in one place - Fix package references from Metar.Decoder to QRCoder.Core - Maintain both tag-based and manual publishing options - Include comprehensive status reporting and links - Simplify CI/CD pipeline structure
1 parent 4b85495 commit 3341901

2 files changed

Lines changed: 33 additions & 168 deletions

File tree

.github/workflows/publish-all.yml

Lines changed: 0 additions & 168 deletions
This file was deleted.

.github/workflows/publish-nuget.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,36 @@ jobs:
194194
generate_release_notes: true
195195
env:
196196
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
197+
198+
# Publish Summary
199+
publish-summary:
200+
name: 📊 Publish Summary
201+
runs-on: ubuntu-latest
202+
needs: [build-and-test, publish, create-release]
203+
if: always()
204+
205+
steps:
206+
- name: 📊 Generate Publish Summary
207+
run: |
208+
echo "## 🚀 Publish Summary" >> $GITHUB_STEP_SUMMARY
209+
echo "" >> $GITHUB_STEP_SUMMARY
210+
echo "| Component | Status |" >> $GITHUB_STEP_SUMMARY
211+
echo "|-----------|--------|" >> $GITHUB_STEP_SUMMARY
212+
echo "| 🔨 Build & Test | ${{ needs.build-and-test.result }} |" >> $GITHUB_STEP_SUMMARY
213+
echo "| 📦 NuGet Publish | ${{ needs.publish.result }} |" >> $GITHUB_STEP_SUMMARY
214+
echo "| 🏷️ GitHub Release | ${{ needs.create-release.result }} |" >> $GITHUB_STEP_SUMMARY
215+
echo "" >> $GITHUB_STEP_SUMMARY
216+
echo "**🎯 All publish jobs completed!**" >> $GITHUB_STEP_SUMMARY
217+
echo "" >> $GITHUB_STEP_SUMMARY
218+
echo "### 📦 Package Links" >> $GITHUB_STEP_SUMMARY
219+
echo "- **QRCoder.Core**: [NuGet.org](https://www.nuget.org/packages/QRCoder.Core)" >> $GITHUB_STEP_SUMMARY
220+
echo "- **GitHub Packages**: [View Packages](https://github.com/${{ github.repository }}/packages)" >> $GITHUB_STEP_SUMMARY
221+
echo "" >> $GITHUB_STEP_SUMMARY
222+
echo "### 📋 Version Information" >> $GITHUB_STEP_SUMMARY
223+
if [ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref_type }}" == "tag" ]; then
224+
echo "- **Tag**: ${{ github.ref_name }}" >> $GITHUB_STEP_SUMMARY
225+
echo "- **Commit**: ${{ github.sha }}" >> $GITHUB_STEP_SUMMARY
226+
else
227+
echo "- **Version**: ${{ github.event.inputs.version }}" >> $GITHUB_STEP_SUMMARY
228+
echo "- **Manual Publish**: Yes" >> $GITHUB_STEP_SUMMARY
229+
fi

0 commit comments

Comments
 (0)