Skip to content

Commit

Permalink
removed nuget stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
AsakerMohd committed Nov 1, 2024
1 parent 1fa5b0f commit 9962c43
Showing 1 changed file with 3 additions and 62 deletions.
65 changes: 3 additions & 62 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
caller-workflow-name: 'release_build_workflow'

release:
needs: [build-and-upload, build-release-nuget]
needs: [build-and-upload]
environment: Release
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -80,12 +80,6 @@ jobs:
with:
name: AWS.Otel.DotNet.Auto.psm1
path: ./installationScripts

- name: Download nuget package
uses: actions/download-artifact@v3
with:
name: nuget-packages.zip
path: ./artifacts/nuget

- name: Configure AWS credentials for Private S3 Bucket
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -103,7 +97,6 @@ jobs:
done
aws s3 cp ./installationScripts/aws-otel-dotnet-install.sh "${{ env.RELEASE_PRIVATE_S3 }}/$PREFIX/aws-otel-dotnet-install.sh"
aws s3 cp ./installationScripts/AWS.Otel.DotNet.Auto.psm1 "${{ env.RELEASE_PRIVATE_S3 }}/$PREFIX/AWS.Otel.DotNet.Auto.psm1"
aws s3 cp ./artifacts/nuget/nuget-packages.zip "${{ env.RELEASE_PRIVATE_S3 }}/$PREFIX/nuget-packages.zip"
# Publish to GitHub releases
- name: Create GH release
Expand Down Expand Up @@ -135,14 +128,11 @@ jobs:
gh release upload "v${{ github.event.inputs.version }}" \
./installationScripts/AWS.Otel.DotNet.Auto.psm1 \
--clobber
gh release upload "v${{ github.event.inputs.version }}" \
./artifacts/nuget/nuget-packages.zip \
--clobber
release-image:
# We want to build and release nuget first so that if it fails, it fails before publishing to private ECR
# since deleting from Private ECR is not possible.
needs: [release, build-release-nuget]
needs: [release]
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
Expand Down Expand Up @@ -312,53 +302,4 @@ jobs:
run: |
docker manifest create ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }} ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}-amd64 ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}-arm64 ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}-windows2019 ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}-windows2022
docker manifest inspect ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}
docker manifest push ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}
build-release-nuget:
runs-on: windows-latest

strategy:
fail-fast: true

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install dependencies
run: dotnet restore .\src\AWS.Distro.OpenTelemetry.AutoInstrumentation /p:_IsPacking=true

- name: Build solution
run: >
dotnet build .\src\AWS.Distro.OpenTelemetry.AutoInstrumentation
/p:Configuration=Release
--no-restore
- name: Assume signer role
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_ARTIFACT_ACCESS_ROLE_ARN }}
aws-region: ${{ env.AWS_SIGNING_KEY_REGION }}

- name: Invoke Signing script
env:
UNSIGNED_BUCKET: ${{ secrets.AWS_UNSIGNED_BUCKET_NAME }}
SIGNED_BUCKET: ${{ secrets.AWS_SIGNED_BUCKET_NAME }}
#TODO: There is probably a better way to pass in a list of paths as a single parameter to the script.
run: |
.\buildtools\sign_files.ps1 -Filters AWS.Distro.OpenTelemetry.AutoInstrumentation.dll -Recurse -Path .\src\AWS.Distro.OpenTelemetry.AutoInstrumentation\bin\Release
.\buildtools\sign_files.ps1 -Filters OpenTelemetry.Instrumentation.AWS.dll -Recurse -Path .\src\AWS.Distro.OpenTelemetry.AutoInstrumentation\bin\Release
- name: Pack nugets
run: >
dotnet pack
.\src\AWS.Distro.OpenTelemetry.AutoInstrumentation
/p:Version=${{github.event.inputs.version}}
--no-build
-c Release
-o .\Deployment\nuget-packages
- name: Upload nugets to this GitHub Action run as an artifact
uses: actions/upload-artifact@v3
with:
name: nuget-packages.zip
path: Deployment/nuget-packages/
docker manifest push ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}

0 comments on commit 9962c43

Please sign in to comment.