Skip to content

Commit

Permalink
add release artifact job
Browse files Browse the repository at this point in the history
  • Loading branch information
realFlowControl committed Feb 14, 2025
1 parent f6a7e40 commit 00d2976
Showing 1 changed file with 25 additions and 0 deletions.
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 }}

0 comments on commit 00d2976

Please sign in to comment.