From b50200592d5ec865094be6743d4ecd26250ef5cb Mon Sep 17 00:00:00 2001 From: Markus Rosenstihl Date: Wed, 6 Dec 2023 16:51:16 +0100 Subject: [PATCH] upload fixed --- .gitea/workflows/build-appimage.yaml | 4 ++-- tools/upload_gitea.sh | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build-appimage.yaml b/.gitea/workflows/build-appimage.yaml index f211fe7..833a5b7 100644 --- a/.gitea/workflows/build-appimage.yaml +++ b/.gitea/workflows/build-appimage.yaml @@ -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 }} diff --git a/tools/upload_gitea.sh b/tools/upload_gitea.sh index ac27724..fcfdcd8 100755 --- a/tools/upload_gitea.sh +++ b/tools/upload_gitea.sh @@ -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