use ref_name
All checks were successful
Publish Composer Package / publish (push) Successful in 40s

This commit is contained in:
Tristan 2025-01-09 17:13:34 +01:00
parent 6eca2c8e0a
commit a77742fc20

View file

@ -27,9 +27,9 @@ jobs:
- name: Publish to Forgejo Package Registry
run: |
echo "Publishing to https://git.fucktheforce.de/api/packages/${{ github.repository_owner }}/composer?version=${{ github.event.release.tag_name }}"
echo "Publishing to https://git.fucktheforce.de/api/packages/${{ github.repository_owner }}/composer?version=${{ github.ref_name }}"
curl --request PUT --fail --silent \
--url "https://git.fucktheforce.de/api/packages/${{ github.repository_owner }}/composer?version=${{ github.event.release.tag_name }}" \
--url "https://git.fucktheforce.de/api/packages/${{ github.repository_owner }}/composer?version=${{ github.ref_name }}" \
--header "Authorization: Bearer ${{ secrets.WORKFLOW_TOKEN }}" \
--header "Content-Type: application/zip" \
--data-binary "@package.zip"