From 9a5e5d24ceb11254fcbb1e261b159fd546b7d9a9 Mon Sep 17 00:00:00 2001 From: Tristan Date: Thu, 9 Jan 2025 17:00:15 +0100 Subject: [PATCH] next try --- .forgejo/workflows/publish-composer.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/publish-composer.yml b/.forgejo/workflows/publish-composer.yml index 1bfc070..5ca6ab5 100644 --- a/.forgejo/workflows/publish-composer.yml +++ b/.forgejo/workflows/publish-composer.yml @@ -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 \ No newline at end of file + 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" \ No newline at end of file