refactor: 👷 variabilize release dep
All checks were successful
repod / xml (push) Successful in 19s
repod / php (push) Successful in 1m14s
repod / nodejs (push) Successful in 1m16s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-11-10 19:25:05 +01:00
parent c439f8585e
commit 6c0976bc16

View File

@ -55,7 +55,7 @@ jobs:
- uses: akkuman/gitea-release-action@v1
with:
files: |
build/artifacts/repod.tar.gz
build/artifacts/${{ gitea.event.repository.name }}.tar.gz
- uses: FKLC/sign-files-action@v1.0.0
with:
privateKey: ${{ secrets.PRIVATEKEY }}
@ -63,13 +63,13 @@ jobs:
extension: .sig
outputFolder: build/artifacts
files: |
build/artifacts/repod.tar.gz
build/artifacts/${{ gitea.event.repository.name }}.tar.gz
- id: sign
run: echo "SIGNATURE=$(cat build/artifacts/repod.tar.gz.sig | openssl base64 -A)" >> $GITHUB_OUTPUT
run: echo "SIGNATURE=$(cat build/artifacts/${{ gitea.event.repository.name }}.tar.gz.sig | openssl base64 -A)" >> $GITHUB_OUTPUT
- uses: actionsflow/axios@v1
with:
url: https://apps.nextcloud.com/api/v1/apps/releases
method: POST
accept: 200,201
headers: '{ "Authorization": "Token <<<${{ secrets.TOKEN }}>>>" }'
data: '{ "download": "https://git.crystalyx.net/Xefir/repod/releases/download/<<<${{ gitea.ref_name }}>>>/repod.tar.gz", "signature": "<<<${{ steps.sign.outputs.SIGNATURE }}>>>" }'
data: '{ "download": "https://git.crystalyx.net/${{ gitea.repository }}/releases/download/<<<${{ gitea.ref_name }}>>>/${{ gitea.event.repository.name }}.tar.gz", "signature": "<<<${{ steps.sign.outputs.SIGNATURE }}>>>" }'