test
All checks were successful
repod / php (push) Successful in 1m4s
repod / xml (push) Successful in 21s
repod / nodejs (push) Successful in 2m15s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-01-15 22:34:53 +01:00
parent 6f59091d31
commit 2e31f202fc

View File

@ -45,7 +45,7 @@ jobs:
- run: npm run build - run: npm run build
release: release:
#if: gitea.ref_type == 'tag' if: gitea.ref_type == 'tag'
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: nextcloud:28 container: nextcloud:28
steps: steps:
@ -68,18 +68,11 @@ jobs:
run: | run: |
make dist make dist
echo "$KEYFILE" > /tmp/repod.key echo "$KEYFILE" > /tmp/repod.key
echo "SIGNATURE=$(openssl dgst -sha512 -sign /tmp/repod.key build/artifacts/repod.tar.gz | openssl base64)" >> $GITHUB_OUTPUT openssl dgst -sha512 -sign /tmp/repod.key build/artifacts/repod.tar.gz | openssl base64 > build/artifacts/repod.asc
env: env:
KEYFILE: ${{ secrets.KEYFILE }} KEYFILE: ${{ secrets.KEYFILE }}
#- uses: akkuman/gitea-release-action@v1 - uses: akkuman/gitea-release-action@v1
# with:
# files: |
# build/artifacts/repod.tar.gz
- uses: actionsflow/axios@v1
with: with:
url: https://apps.nextcloud.com/api/v1/apps/releases files: |
method: POST build/artifacts/repod.tar.gz
accept: 200,201,400 build/artifacts/repod.asc
headers: '{ "Authorization": "Token <<<${{ secrets.TOKEN }}>>>" }'
data: '{ "download": "https://git.crystalyx.net/Xefir/repod/releases/download/latest/repod.tar.gz", "signature": "<<<${{ steps.dist.outputs.SIGNATURE }}>>>" }'
- run: echo ${{ steps.api.outputs.data }}