0
0

.gitea/workflows/release.yml aktualisiert

This commit is contained in:
Denys Konovalov 2024-07-05 19:58:27 +02:00
parent 750cd1a4a0
commit ba82e98e59

@ -1,11 +1,9 @@
name: release
name: HUGO Update Check
on:
push:
branches:
- main
push: [main]
schedule:
- cron: '@hourly'
- cron: @daily
jobs:
release:
@ -23,4 +21,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')
curl -LO https://github.com/gohugoio/hugo/releases/download/v$(echo $NEWEST_HUGO_RELEASE)/hugo_extended_$(echo $NEWEST_HUGO_RELEASE)_linux-amd64.deb
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
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