Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
crohr committed May 30, 2024
1 parent 10020d1 commit a74cd86
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ runs:
TARGET: ${{ inputs.target }}
CHANNEL: ${{ inputs.channel }}
run: |
org=${GITHUB_REPOSITORY%%/*}
repo=${GITHUB_REPOSITORY##*/}
curl -u "${{ inputs.token }}" -i -X POST "https://dl.packager.io/api/orgs/${org}/repos/${repo}/packages" \
org="${GITHUB_REPOSITORY%%/*}"
repo="${GITHUB_REPOSITORY##*/}"
url="https://dl.packager.io/api/orgs/${org}/repos/${repo}/packages"
echo "${url}"
curl -u "${{ inputs.token }}" -i -X POST "${url}" \
-F "artefact=@${{ inputs.artefact }}" \
-F "targets[]=${TARGET/://}" \
-F "channels[]=$CHANNEL"

0 comments on commit a74cd86

Please sign in to comment.