Skip to content

Commit 9962c43

Browse files
committed
removed nuget stuff
1 parent 1fa5b0f commit 9962c43

File tree

1 file changed

+3
-62
lines changed

1 file changed

+3
-62
lines changed

.github/workflows/release_build.yml

Lines changed: 3 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
caller-workflow-name: 'release_build_workflow'
3333

3434
release:
35-
needs: [build-and-upload, build-release-nuget]
35+
needs: [build-and-upload]
3636
environment: Release
3737
runs-on: ubuntu-latest
3838
steps:
@@ -80,12 +80,6 @@ jobs:
8080
with:
8181
name: AWS.Otel.DotNet.Auto.psm1
8282
path: ./installationScripts
83-
84-
- name: Download nuget package
85-
uses: actions/download-artifact@v3
86-
with:
87-
name: nuget-packages.zip
88-
path: ./artifacts/nuget
8983

9084
- name: Configure AWS credentials for Private S3 Bucket
9185
uses: aws-actions/configure-aws-credentials@v4
@@ -103,7 +97,6 @@ jobs:
10397
done
10498
aws s3 cp ./installationScripts/aws-otel-dotnet-install.sh "${{ env.RELEASE_PRIVATE_S3 }}/$PREFIX/aws-otel-dotnet-install.sh"
10599
aws s3 cp ./installationScripts/AWS.Otel.DotNet.Auto.psm1 "${{ env.RELEASE_PRIVATE_S3 }}/$PREFIX/AWS.Otel.DotNet.Auto.psm1"
106-
aws s3 cp ./artifacts/nuget/nuget-packages.zip "${{ env.RELEASE_PRIVATE_S3 }}/$PREFIX/nuget-packages.zip"
107100
108101
# Publish to GitHub releases
109102
- name: Create GH release
@@ -135,14 +128,11 @@ jobs:
135128
gh release upload "v${{ github.event.inputs.version }}" \
136129
./installationScripts/AWS.Otel.DotNet.Auto.psm1 \
137130
--clobber
138-
gh release upload "v${{ github.event.inputs.version }}" \
139-
./artifacts/nuget/nuget-packages.zip \
140-
--clobber
141131
142132
release-image:
143133
# We want to build and release nuget first so that if it fails, it fails before publishing to private ECR
144134
# since deleting from Private ECR is not possible.
145-
needs: [release, build-release-nuget]
135+
needs: [release]
146136
runs-on: ${{ matrix.os }}
147137
continue-on-error: true
148138
strategy:
@@ -312,53 +302,4 @@ jobs:
312302
run: |
313303
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
314304
docker manifest inspect ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}
315-
docker manifest push ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}
316-
317-
build-release-nuget:
318-
runs-on: windows-latest
319-
320-
strategy:
321-
fail-fast: true
322-
323-
steps:
324-
- name: Checkout repository
325-
uses: actions/checkout@v2
326-
327-
- name: Install dependencies
328-
run: dotnet restore .\src\AWS.Distro.OpenTelemetry.AutoInstrumentation /p:_IsPacking=true
329-
330-
- name: Build solution
331-
run: >
332-
dotnet build .\src\AWS.Distro.OpenTelemetry.AutoInstrumentation
333-
/p:Configuration=Release
334-
--no-restore
335-
336-
- name: Assume signer role
337-
uses: aws-actions/configure-aws-credentials@v1
338-
with:
339-
role-to-assume: ${{ secrets.AWS_ARTIFACT_ACCESS_ROLE_ARN }}
340-
aws-region: ${{ env.AWS_SIGNING_KEY_REGION }}
341-
342-
- name: Invoke Signing script
343-
env:
344-
UNSIGNED_BUCKET: ${{ secrets.AWS_UNSIGNED_BUCKET_NAME }}
345-
SIGNED_BUCKET: ${{ secrets.AWS_SIGNED_BUCKET_NAME }}
346-
#TODO: There is probably a better way to pass in a list of paths as a single parameter to the script.
347-
run: |
348-
.\buildtools\sign_files.ps1 -Filters AWS.Distro.OpenTelemetry.AutoInstrumentation.dll -Recurse -Path .\src\AWS.Distro.OpenTelemetry.AutoInstrumentation\bin\Release
349-
.\buildtools\sign_files.ps1 -Filters OpenTelemetry.Instrumentation.AWS.dll -Recurse -Path .\src\AWS.Distro.OpenTelemetry.AutoInstrumentation\bin\Release
350-
351-
- name: Pack nugets
352-
run: >
353-
dotnet pack
354-
.\src\AWS.Distro.OpenTelemetry.AutoInstrumentation
355-
/p:Version=${{github.event.inputs.version}}
356-
--no-build
357-
-c Release
358-
-o .\Deployment\nuget-packages
359-
360-
- name: Upload nugets to this GitHub Action run as an artifact
361-
uses: actions/upload-artifact@v3
362-
with:
363-
name: nuget-packages.zip
364-
path: Deployment/nuget-packages/
305+
docker manifest push ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}

0 commit comments

Comments
 (0)