Skip to content

Make csharp reusable workflow - #4

Open
konard wants to merge 3 commits into
mainfrom
issue-3-5188c11b
Open

konard wants to merge 3 commits into
mainfrom
issue-3-5188c11b

Conversation

@konard

@konard konard commented Sep 11, 2025 •

Copy link
Copy Markdown
Member

🤖 AI-Powered Solution

This pull request solves issue #3 by converting the commented C# workflow into a functional reusable workflow.

📋 Issue Reference

Fixes #3

✅ Implementation Details

Key Changes:

  • ✅ Converted commented csharp.yml workflow to functional reusable workflow
  • ✅ Added workflow_call trigger with required secrets inputs:
    • NUGET_TOKEN (required)
    • GITHUB_TOKEN (required)
  • ✅ Updated all actions/checkout to v3 for consistency with other workflows
  • ✅ Added .NET setup steps to all jobs for proper environment setup
  • ✅ Fixed typos in job names (publiseRelease → publishRelease, pusnToNuget → pushToNuget)
  • ✅ Updated .NET version to 8.0.x (matching the test framework target)
  • ✅ Maintained all original functionality:
    • Testing with dotnet test
    • NuGet package publishing to GitHub Package Registry
    • NuGet package publishing to nuget.org
    • Release publishing
    • Documentation generation (conditional on C# file changes)
    • PDF generation (conditional on C# file changes)

Usage Example:

name: Deploy C# Package

on:
  push:
    branches: main 
    paths:
      - 'csharp/**'
  workflow_dispatch:

jobs:
  deploy:
    uses: linksplatform/Workflows/.github/workflows/csharp.yml@main
    secrets:
      NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

🧪 Testing

  • ✅ YAML syntax validation passed
  • ✅ Follows established patterns from existing reusable workflows in the repository
  • ✅ Created usage example in examples/csharp-usage-example.yml

📁 Files Changed

  • .github/workflows/csharp.yml - Converted from commented template to functional reusable workflow
  • examples/csharp-usage-example.yml - Added usage example for documentation

This PR was created automatically by the AI issue solver and is ready for review

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #3
@konard konard self-assigned this Sep 11, 2025
konard and others added 2 commits September 11, 2025 08:29
- Convert commented workflow to functional reusable workflow using workflow_call trigger
- Add required secrets inputs (NUGET_TOKEN, GITHUB_TOKEN)
- Update all checkout actions to v3 for consistency
- Add .NET setup steps to all jobs for proper environment setup
- Fix typo in job name (publiseRelease -> publishRelease, pusnToNuget -> pushToNuget)
- Create usage example demonstrating how to call the reusable workflow
- Maintain all original functionality including testing, NuGet publishing, documentation generation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard changed the title [WIP] Make csharp reusable workflow Make csharp reusable workflow Sep 11, 2025
@konard
konard marked this pull request as ready for review September 11, 2025 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make csharp reusable workflow

1 participant