forked from IPKM/nmreval
upload fixed
This commit is contained in:
parent
bfc25e33f9
commit
b50200592d
@ -31,5 +31,5 @@ jobs:
|
||||
run: ./tools/upload_gitea.sh
|
||||
env:
|
||||
GO_PIPELINE_LABEL: ${{ env.YEAR }}.${{ gitea.run_number }}_${{ env.SHA_SHORT }}
|
||||
UPLOAD_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
UPLOAD_USER: ${{ vars.GITEA_USER }}
|
||||
UPLOAD_TOKEN: ${{ secrets.UPLOAD_TOKEN }}
|
||||
UPLOAD_USER: ${{ vars.UPLOAD_USER }}
|
||||
|
@ -9,28 +9,28 @@ else
|
||||
# AppImage
|
||||
#
|
||||
# versioned
|
||||
curl -sS --user ${gitea_user}:${gitea_token} \
|
||||
curl -sS --user ${UPLOAD_USER}:${UPLOAD_TOKEN} \
|
||||
--upload-file $APPIMAGE \
|
||||
https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/${GO_PIPELINE_LABEL}/$APPIMAGE
|
||||
# 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
|
||||
|
||||
curl -sS --user ${gitea_user}:${gitea_token} \
|
||||
curl -sS --user ${UPLOAD_USER}:${UPLOAD_TOKEN} \
|
||||
--upload-file $APPIMAGE \
|
||||
https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage
|
||||
#
|
||||
# zsync files
|
||||
#
|
||||
# versioned
|
||||
curl -sS --user ${gitea_user}:${gitea_token} \
|
||||
curl -sS --user ${UPLOAD_USER}:${UPLOAD_TOKEN} \
|
||||
--upload-file $ZSYNC \
|
||||
https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/${GO_PIPELINE_LABEL}/$ZSYNC
|
||||
# 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
|
||||
|
||||
curl -sS --user ${gitea_user}:${gitea_token} \
|
||||
curl -sS --user ${UPLOAD_USER}:${UPLOAD_TOKEN} \
|
||||
--upload-file $ZSYNC \
|
||||
https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage.zsync
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user