Skip to content

Commit

Permalink
[Serverless Mini Agent] Upload Serverless Binaries Instead of Generat…
Browse files Browse the repository at this point in the history
…ing Release (#634)

* upload serverless binaries instead of generating release

* prevent double zipping of release binaries
  • Loading branch information
duncanpharvey authored Sep 16, 2024
1 parent 0df879e commit 19cc332
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/publish-serverless-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
shell: bash
run: cargo build --release -p datadog-serverless-trace-mini-agent --target x86_64-unknown-linux-musl
- name: Upload artifacts for release step
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: datadog-serverless-agent-linux-amd64
path: target/x86_64-unknown-linux-musl/release/datadog-serverless-trace-mini-agent
Expand All @@ -37,7 +37,7 @@ jobs:
shell: bash
run: cargo build --release -p datadog-serverless-trace-mini-agent
- name: Upload artifacts for release step
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: datadog-serverless-agent-windows-amd64
path: target/release/datadog-serverless-trace-mini-agent.exe
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Download artifacts from build step
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: target/release/binaries
- name: UPX compress binaries
Expand All @@ -59,12 +59,8 @@ jobs:
chmod +x "$file"
upx "$file" --lzma
done
- name: Zip binaries
run: zip -r datadog-serverless-agent.zip ./*
working-directory: target/release/binaries
- name: Release
uses: softprops/action-gh-release@v1
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
draft: true
generate_release_notes: true
files: target/release/binaries/datadog-serverless-agent.zip
name: datadog-serverless-agent
path: target/release/binaries/*/*

0 comments on commit 19cc332

Please sign in to comment.