ci: remote automate publishing
This commit is contained in:
parent
efe0525fce
commit
c48432c0b5
@ -63,22 +63,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ steps.versions.outputs.nodeVersion }}
|
node-version: ${{ steps.versions.outputs.nodeVersion }}
|
||||||
- run: npm i -g npm@${{ steps.versions.outputs.npmVersion }}
|
- run: npm i -g npm@${{ steps.versions.outputs.npmVersion }}
|
||||||
- id: dist
|
- run: make dist
|
||||||
name: dist
|
|
||||||
run: |
|
|
||||||
make dist
|
|
||||||
echo "$KEYFILE" > /tmp/repod.key
|
|
||||||
echo "SIGNATURE=$(openssl dgst -sha512 -sign /tmp/repod.key build/artifacts/repod.tar.gz | openssl base64)" >> $GITHUB_OUTPUT
|
|
||||||
env:
|
|
||||||
KEYFILE: ${{ secrets.KEYFILE }}
|
|
||||||
- uses: akkuman/gitea-release-action@v1
|
- uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
build/artifacts/repod.tar.gz
|
build/artifacts/repod.tar.gz
|
||||||
- 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.dist.outputs.SIGNATURE }}>>>" }'
|
|
||||||
|
Loading…
Reference in New Issue
Block a user