From 85bd8778698c3079932c38be2b6fb50b21731b43 Mon Sep 17 00:00:00 2001 From: Lyn Fugmann Date: Sun, 6 Oct 2024 23:03:11 +0200 Subject: [PATCH] test deploy 4 --- .forgejo/workflows/publish.yaml | 7 ++++--- content/_data/ese.yaml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml index 1b07dcc..bfca027 100644 --- a/.forgejo/workflows/publish.yaml +++ b/.forgejo/workflows/publish.yaml @@ -32,9 +32,10 @@ jobs: - name: deploy run: | + apt-get update && apt-get install -y rsync + wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq && chmod +x /usr/bin/yq eval $(ssh-agent -s) echo "$SSH_PRIVATE_KEY" | ssh-add - - apt-get update && apt-get install -y rsync mkdir ~/.ssh - ssh-keyscan ifsr.de > ~/.ssh/known_hosts - rsync -rvh --progress --delete --chmod=ugo=rwX _site/ ese-deploy@ifsr.de:2024-test + year=$(yq '.year' content/_data/ese.yaml) + rsync -rvh --progress --delete --chmod=ugo=rwX _site/ ese-deploy@ifsr.de:"$year" diff --git a/content/_data/ese.yaml b/content/_data/ese.yaml index a585d2f..b32784f 100644 --- a/content/_data/ese.yaml +++ b/content/_data/ese.yaml @@ -1,4 +1,4 @@ -year: 2024 +year: 2025 startDay: 7 endDay: 11 color: "#F221B7"