From ff09a2b37cfc417dc97095a0594462694386d4c3 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 12 Aug 2024 01:32:43 -0400 Subject: [PATCH] .forgejo: push to generic repo rather than release --- .forgejo/workflows/generate-tarball.yml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.forgejo/workflows/generate-tarball.yml b/.forgejo/workflows/generate-tarball.yml index b9ef8da3b5..c9fb141082 100644 --- a/.forgejo/workflows/generate-tarball.yml +++ b/.forgejo/workflows/generate-tarball.yml @@ -33,23 +33,17 @@ jobs: with: name: tarball path: zotero-${{ inputs.ref_name }}.* - upload-release: + upload-tarball: runs-on: x86_64 needs: [build-tarball] container: image: docker.io/node:20-bookworm steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 500 - ref: ${{ inputs.ref_name }} - - uses: actions/forgejo-release@v2.3.0 - with: - direction: upload - url: https://api.ayakael.net - repo: mirrors/zotero - sha: f55d5c106785e0575f2d48abf34e4de252c4f301 - tag: ${{ inputs.ref_name }} - verbose: true - token: ${{ secrets.CODE_FORGEJO_TOKEN }} - release-dir: ./ + - name: Environment setup + run: apk add nodejs curl + - name: Package download + uses: forgejo/download-artifact@v3 + - name: Package deployment + run: | + curl --user forge: ${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file ./zotero-${{ inputs.ref_name }}.tar.gz ${{ github.server_url }}/api/packages/zotero/generic/zotero/${{ inputs.ref_name }}/zotero-${{ inputs.ref_name}}.tar.gz + curl --user forge: ${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file ./zotero-${{ inputs.ref_name }}.tar.gz.sha512sum ${{ github.server_url }}/api/packages/zotero/generic/zotero/${{ inputs.ref_name }}/zotero-${{ inputs.ref_name}}.tar.gz.sha512sum