Skip to content

Commit

Permalink
add back zipping of serverless binaries with proper github permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanpharvey committed Oct 2, 2024
1 parent b8a7d2d commit 94d4f9a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/publish-serverless-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
name: Zip and Release
needs: [build-windows, build-linux-musl]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -59,8 +61,12 @@ jobs:
chmod +x "$file"
upx "$file" --lzma
done
- name: Upload binaries
uses: actions/upload-artifact@v4
- name: Zip binaries
run: zip -r datadog-serverless-agent.zip ./*
working-directory: target/release/binaries
- name: Release
uses: softprops/action-gh-release@v1
with:
name: datadog-serverless-agent
path: target/release/binaries/*/*
draft: true
generate_release_notes: true
files: target/release/binaries/datadog-serverless-agent.zip

0 comments on commit 94d4f9a

Please sign in to comment.