.forgejo: add name to tar upload

This commit is contained in:
Antoine Martin 2024-08-12 01:38:57 -04:00
parent 950432de6b
commit 0939826a99
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -34,6 +34,7 @@ jobs:
name: tarball
path: zotero-${{ inputs.ref_name }}.*
upload-tarball:
name: Upload to generic repo
runs-on: x86_64
needs: [build-tarball]
container:
@ -45,5 +46,5 @@ jobs:
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/mirrors/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/mirrors/generic/zotero/${{ inputs.ref_name }}/zotero-${{ inputs.ref_name}}.tar.gz.sha512sum
curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file ./zotero-${{ inputs.ref_name }}.tar.gz ${{ github.server_url }}/api/packages/mirrors/generic/zotero/${{ inputs.ref_name }}/zotero-${{ inputs.ref_name}}.tar.gz
curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file ./zotero-${{ inputs.ref_name }}.tar.gz.sha512sum ${{ github.server_url }}/api/packages/mirrors/generic/zotero/${{ inputs.ref_name }}/zotero-${{ inputs.ref_name}}.tar.gz.sha512sum