From 8f756a24d80842130b1fbd7f79c88c11d5b94c3e Mon Sep 17 00:00:00 2001 From: Alexander Bigga Date: Thu, 2 Nov 2023 20:40:01 +0100 Subject: [PATCH] Fix workflow target of documentation --- .github/workflows/build-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 43fc1244..ae315b71 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -86,7 +86,7 @@ jobs: run: | rsync -a sunflower-${{ github.ref_name }}.zip version.txt changelog.html production:/var/www/updateserver/ THEME_VERSION=$(cat version.txt | sed -e 's/^v//') - ssh production "cd /var/www && wp post get $PAGEID --field=content | sed -e 's/[^<]*/$THEME_VERSION/g' > /tmp/content-$PAGEID.txt" + ssh production "cd /var/www && wp post get $PAGEID --field=content | sed -e 's/[^<]*/$THEME_VERSION/g | sed -E 's/\/updateserver\/(.*)\.zip/\/updateserver\/sunflower-$THEME_VERSION.zip/g' > /tmp/content-$PAGEID.txt" ssh production "cd /var/www && wp post update $PAGEID - < /tmp/content-$PAGEID.txt && wp option update blogdescription 'Demoseite für das WordPress-Theme Sunflower $THEME_VERSION' --url=sunflower-theme.de/demo && wp option update blogname 'Sunflower $THEME_VERSION'" mkdocs: @@ -124,4 +124,4 @@ jobs: run: echo ${GITHUB_REF##*/} > version.txt - name: rsync documentation - run: rsync -a --delete documentation production:/var/www/documentation/ + run: rsync -a --delete documentation production:/var/www/