diff --git a/.forgejo/workflows/generate-tarball.yml b/.forgejo/workflows/generate-tarball.yml index 70fbe55b1f..5de03640f5 100644 --- a/.forgejo/workflows/generate-tarball.yml +++ b/.forgejo/workflows/generate-tarball.yml @@ -33,7 +33,6 @@ jobs: else CI_REF_NAME=$GITHUB_REF_NAME fi - echo "CI_REF_NAME=$CI_REF_NAME" >> $GITHUB_OUTPUT echo "building tarball for $CI_REF_NAME" git-archive-all --force-submodules $CI_PROJECT_NAME-$CI_REF_NAME.tar.gz echo "Generating sha512sum" @@ -56,5 +55,10 @@ jobs: uses: forgejo/download-artifact@v3 - name: Package deployment run: | + if test $GITHUB_REF_NAME == "ci" ; then + CI_REF_NAME=${{ inputs.ref_name }} + else + CI_REF_NAME=$GITHUB_REF_NAME + fi curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file ./tarball/zotero-*.tar.gz ${{ github.server_url }}/api/packages/mirrors/generic/zotero/$CI_REF_NAME/zotero-$CI_REF_NAME.tar.gz curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file ./tarball/zotero-*.tar.gz.sha512sum ${{ github.server_url }}/api/packages/mirrors/generic/zotero/$CI_REF_NAME/zotero-$CI_REF_NAME.tar.gz.sha512sum