From 4adae6668118aa72744410abf000b867ed832e8b Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Tue, 19 Dec 2023 11:14:34 +0100 Subject: [PATCH] .gitea/workflows/release.yml aktualisiert --- .gitea/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 7d4543d..98641aa 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -15,4 +15,4 @@ jobs: run: | export NEWEST_HUGO_RELEASE=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases | jq -r '.[0].name' | sed 's/v//g') export CURRENT_HUGO_RELEASE=$(curl --user ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} https://git.cantorgymnasium.de/api/v1/packages/gcg | jq -r 'map(select( .name | contains("hugo"))) | .[0].version') - if [ $NEWEST_HUGO_RELEASE != $CURRENT_HUGO_RELEASE ]; then curl -O https://github.com/gohugoio/hugo/releases/download/v$(echo $NEWEST_HUGO_RELEASE)/hugo_extended_$(echo $NEWEST_HUGO_RELEASE)_linux-amd64.deb; ls; curl --user ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} --upload-file hugo_extended_$(echo $NEWEST_HUGO_RELEASE)_linux-amd64.deb https://git.cantorgymnasium.de/api/packages/gcg/debian/pool/all/main/upload; fi \ No newline at end of file + if [ $NEWEST_HUGO_RELEASE != $CURRENT_HUGO_RELEASE ]; then curl https://github.com/gohugoio/hugo/releases/download/v$(echo $NEWEST_HUGO_RELEASE)/hugo_extended_$(echo $NEWEST_HUGO_RELEASE)_linux-amd64.deb; ls; curl --user ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} --upload-file hugo_extended_$(echo $NEWEST_HUGO_RELEASE)_linux-amd64.deb https://git.cantorgymnasium.de/api/packages/gcg/debian/pool/all/main/upload; fi \ No newline at end of file