upload fixed
Some checks failed
Build AppImage / Explore-Gitea-Actions (push) Failing after 15m12s

This commit is contained in:
Markus Rosenstihl 2023-12-06 16:51:16 +01:00
parent bfc25e33f9
commit b50200592d
2 changed files with 8 additions and 8 deletions

View File

@ -31,5 +31,5 @@ jobs:
run: ./tools/upload_gitea.sh run: ./tools/upload_gitea.sh
env: env:
GO_PIPELINE_LABEL: ${{ env.YEAR }}.${{ gitea.run_number }}_${{ env.SHA_SHORT }} GO_PIPELINE_LABEL: ${{ env.YEAR }}.${{ gitea.run_number }}_${{ env.SHA_SHORT }}
UPLOAD_TOKEN: ${{ secrets.GITEA_TOKEN }} UPLOAD_TOKEN: ${{ secrets.UPLOAD_TOKEN }}
UPLOAD_USER: ${{ vars.GITEA_USER }} UPLOAD_USER: ${{ vars.UPLOAD_USER }}

View File

@ -9,28 +9,28 @@ else
# AppImage # AppImage
# #
# versioned # versioned
curl -sS --user ${gitea_user}:${gitea_token} \ curl -sS --user ${UPLOAD_USER}:${UPLOAD_TOKEN} \
--upload-file $APPIMAGE \ --upload-file $APPIMAGE \
https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/${GO_PIPELINE_LABEL}/$APPIMAGE https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/${GO_PIPELINE_LABEL}/$APPIMAGE
# latest # latest
curl -sS --user ${gitea_user}:${gitea_token} -X DELETE \ curl -sS --user ${UPLOAD_USER}:${UPLOAD_TOKEN} -X DELETE \
https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage
curl -sS --user ${gitea_user}:${gitea_token} \ curl -sS --user ${UPLOAD_USER}:${UPLOAD_TOKEN} \
--upload-file $APPIMAGE \ --upload-file $APPIMAGE \
https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage
# #
# zsync files # zsync files
# #
# versioned # versioned
curl -sS --user ${gitea_user}:${gitea_token} \ curl -sS --user ${UPLOAD_USER}:${UPLOAD_TOKEN} \
--upload-file $ZSYNC \ --upload-file $ZSYNC \
https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/${GO_PIPELINE_LABEL}/$ZSYNC https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/${GO_PIPELINE_LABEL}/$ZSYNC
# latest # latest
curl -sS --user ${gitea_user}:${gitea_token} -X DELETE \ curl -sS --user ${UPLOAD_USER}:${UPLOAD_TOKEN} -X DELETE \
https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage.zsync https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage.zsync
curl -sS --user ${gitea_user}:${gitea_token} \ curl -sS --user ${UPLOAD_USER}:${UPLOAD_TOKEN} \
--upload-file $ZSYNC \ --upload-file $ZSYNC \
https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage.zsync https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage.zsync
fi fi