next try
All checks were successful
Publish Composer Package / publish (push) Successful in 42s

This commit is contained in:
Tristan 2025-01-09 17:00:15 +01:00
parent cd6c93d0e2
commit 9a5e5d24ce

View file

@ -22,11 +22,13 @@ jobs:
- name: Install Dependencies
run: composer install --no-dev --no-interaction --prefer-dist
- name: Configure Git for Forgejo Package Registry
run: |
git config --global url."https://${{ github.repository_owner }}:${{ secrets.WORKFLOW_TOKEN }}@git.fucktheforce.de/api/v1/packages/${{ github.repository_owner }}/".insteadOf "https://git.fucktheforce.de/api/v1/packages/${{ github.repository_owner }}/"
git config --global user.email "actions@example.com"
git config --global user.name "Forgejo Actions"
- name: Build package
run: composer archive --format=zip --file=package.zip
- name: Publish to Forgejo Package Registry
run: composer publish
run: |
curl --request PUT \
--url "https://git.fucktheforce.de/api/packages/${{ github.repository_owner }}/composer?version=${{ github.event.release.tag_name }}" \
--header "Authorization: Bearer ${{ secrets.WORKFLOW_TOKEN }}" \
--header "Content-Type: application/zip" \
--data-binary "@package.zip"