Skip to content

Commit

Permalink
Merge pull request #420 from verdigado/task/fix-workflow
Browse files Browse the repository at this point in the history
Fix workflow target of documentation
  • Loading branch information
albig authored Nov 2, 2023
2 parents bb3bf85 + 8f756a2 commit 0416e1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/<version>[^<]*/<version>$THEME_VERSION/g' > /tmp/content-$PAGEID.txt"
ssh production "cd /var/www && wp post get $PAGEID --field=content | sed -e 's/<version>[^<]*/<version>$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:
Expand Down Expand Up @@ -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/

0 comments on commit 0416e1f

Please sign in to comment.