Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(all) use workflow to add assets to release #3086

Merged
merged 1 commit into from
Feb 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/add-asset-to-gh-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Add assets to release

on:
workflow_dispatch:
inputs:
packagesUrl:
description: 'URL for `packages.tar.gz` to add to release'
required: true
releaseVersion:
description: 'Version to add the assets to'
required: true

jobs:
add-assets-to-release:
runs-on: ubuntu-latest
steps:
- run: |
curl -L -o packages.tar.gz $PACKAGES_URL
tar -xvzf packages.tar.gz
cd build/packages/
gh release upload -R DataDog/dd-trace-php --clobber $RELEASE *
env:
PACKAGES_URL: ${{ inputs.packagesUrl }}
RELEASE: ${{ inputs.releaseVersion }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading