This commit is contained in:
parent
cd6c93d0e2
commit
9a5e5d24ce
1 changed files with 8 additions and 6 deletions
|
@ -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"
|
Loading…
Reference in a new issue