This commit is contained in:
parent
bfc25e33f9
commit
b50200592d
@ -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 }}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user