From b3ad3fa87699780fdbddccc0ab3674538705bb49 Mon Sep 17 00:00:00 2001 From: Ebram Tawfik Date: Thu, 18 Jun 2026 23:01:11 -0700 Subject: [PATCH] Remove unused deployment workflows Remove deploy-http.yml and nuget.yml workflows that are no longer needed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/deploy-http.yml | 135 ------------------------------ .github/workflows/nuget.yml | 40 --------- 2 files changed, 175 deletions(-) delete mode 100644 .github/workflows/deploy-http.yml delete mode 100644 .github/workflows/nuget.yml diff --git a/.github/workflows/deploy-http.yml b/.github/workflows/deploy-http.yml deleted file mode 100644 index a67753b5..00000000 --- a/.github/workflows/deploy-http.yml +++ /dev/null @@ -1,135 +0,0 @@ -name: "Deploy HTTP MCP Server to Azure App Service" - -on: - push: - tags: - - "http-v*" - workflow_dispatch: - inputs: - environment: - description: "Deployment environment" - required: true - default: "production" - type: choice - options: - - production - ref: - description: "Branch or commit SHA to deploy (leave empty for default branch)" - required: false - default: "" - type: string - device_code_auth: - description: "Enable the device-code-auth feature flag" - required: false - default: true - type: boolean - interactive_auth: - description: "Enable the interactive-auth feature flag" - required: false - default: false - type: boolean - -env: - AZURE_WEBAPP_NAME: DataFactoryMCP - AZURE_WEBAPP_PACKAGE_PATH: "./publish" - DOTNET_VERSION: "10.0.x" - PROJECT_PATH: "DataFactory.MCP.Http/DataFactory.MCP.Http.csproj" - -jobs: - build: - name: "Build" - runs-on: ubuntu-latest - - steps: - - name: "Checkout" - uses: actions/checkout@v4 - with: - ref: ${{ github.event.inputs.ref || github.ref }} - - - name: "Get Version from Tag" - id: version - run: | - if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then - REF="${{ github.event.inputs.ref || github.ref_name }}" - VERSION="manual-${REF//\//-}-$(date +'%Y%m%d-%H%M%S')" - else - # Extract version from tag (http-v1.0.0 -> 1.0.0) - VERSION="${GITHUB_REF#refs/tags/http-v}" - fi - echo "version=$VERSION" >> $GITHUB_OUTPUT - echo "Version: $VERSION" - - - name: "Setup .NET" - uses: actions/setup-dotnet@v4 - with: - dotnet-version: ${{ env.DOTNET_VERSION }} - - - name: "Restore dependencies" - run: dotnet restore ${{ env.PROJECT_PATH }} --configfile nuget.public.config - - - name: "Build" - run: dotnet build ${{ env.PROJECT_PATH }} --configuration Release --no-restore - - - name: "Publish" - run: dotnet publish ${{ env.PROJECT_PATH }} --configuration Release --no-build --output ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} - - - name: "Upload artifact" - uses: actions/upload-artifact@v4 - with: - name: webapp - path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} - - outputs: - version: ${{ steps.version.outputs.version }} - - deploy: - name: "Deploy to Azure App Service" - needs: build - runs-on: ubuntu-latest - permissions: - id-token: write - contents: read - environment: - name: ${{ github.event.inputs.environment || 'production' }} - url: ${{ steps.deploy.outputs.webapp-url }} - - steps: - - name: "Download artifact" - uses: actions/download-artifact@v4 - with: - name: webapp - path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} - - - name: "Azure Login" - uses: azure/login@v2 - with: - client-id: ${{ secrets.AZURE_HTTP_DEPLOY_CLIENT_ID }} - tenant-id: ${{ secrets.AZURE_HTTP_DEPLOY_TENANT_ID }} - subscription-id: ${{ secrets.AZURE_HTTP_DEPLOY_SUBSCRIPTION_ID }} - - - name: "Configure App Settings" - uses: azure/appservice-settings@v1 - with: - app-name: ${{ env.AZURE_WEBAPP_NAME }} - app-settings-json: '[{"name": "device-code-auth", "value": "${{ github.event.inputs.device_code_auth || true }}"}, {"name": "interactive-auth", "value": "${{ github.event.inputs.interactive_auth || false }}"}, {"name": "Logging__LogLevel__Default", "value": "Warning"}]' - - - name: "Deploy to Azure Web App" - id: deploy - uses: azure/webapps-deploy@v3 - with: - app-name: ${{ env.AZURE_WEBAPP_NAME }} - package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} - - - name: "Deployment Summary" - run: | - echo "## Deployment Complete 🚀" >> $GITHUB_STEP_SUMMARY - echo "" >> $GITHUB_STEP_SUMMARY - echo "**App Service:** \`${{ env.AZURE_WEBAPP_NAME }}\`" >> $GITHUB_STEP_SUMMARY - echo "**Version:** \`${{ needs.build.outputs.version }}\`" >> $GITHUB_STEP_SUMMARY - echo "**URL:** ${{ steps.deploy.outputs.webapp-url }}" >> $GITHUB_STEP_SUMMARY - echo "**Environment:** ${{ github.event.inputs.environment || 'production' }}" >> $GITHUB_STEP_SUMMARY - # uses: azure/container-apps-deploy-action@v1 - # with: - # containerAppName: datafactory-mcp-http - # resourceGroup: ${{ secrets.AZURE_RESOURCE_GROUP }} - # imageToDeploy: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.build-and-push.outputs.version }} diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml deleted file mode 100644 index 35e67bdf..00000000 --- a/.github/workflows/nuget.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: "Deploy to NuGet" - -on: - push: - tags: - - "v*" - -env: - PROJECT_PATH: "DataFactory.MCP/DataFactory.MCP.csproj" - PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}\output - NUGET_SOURCE_URL: "https://api.nuget.org/v3/index.json" - -jobs: - deploy: - name: "Deploy" - runs-on: "windows-latest" - steps: - - name: "Checkout" - uses: actions/checkout@v4 - - - name: "Install dotnet" - uses: actions/setup-dotnet@v4 - with: - dotnet-version: "10.0.x" - - - name: "Restore packages" - run: dotnet restore ${{ env.PROJECT_PATH }} - - - name: "Build project" - run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release - - - name: "Get Version" - id: version - uses: battila7/get-version-action@v2 - - - name: "Pack project" - run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }} - - - name: "Push package" - run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\*.nupkg -k ${{ secrets.NUGET_AUTH_TOKEN }} -s ${{ env.NUGET_SOURCE_URL }} --skip-duplicate