From ee3c4f061dff1499493bf2b76134fbabcef4a843 Mon Sep 17 00:00:00 2001 From: Alexander Bigga Date: Thu, 2 Nov 2023 18:57:04 +0100 Subject: [PATCH] Fix deployment workflow --- .github/workflows/build-deploy.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 9f103905..43fc1244 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -84,7 +84,7 @@ jobs: env: PAGEID: 1952 run: | - rsync -a sunflower-${{ github.ref_name }}.zip version.txt sunflower/changelog.html production:/var/www/updateserver/ + 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 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'" diff --git a/package.json b/package.json index fae4cbe3..c0100bff 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "lint:js": "wp-scripts lint-js 'js/*.js'", "copy-composer": "copyfiles -u 1 vendor/johngrogg/ics-parser/src/ICal/*.php assets/vndr", "copy-node-modules": "copyfiles -u 1 node_modules/jquery-slim/dist/*.min.js node_modules/@popperjs/core/dist/umd/popper.min.js node_modules/bootstrap/dist/js/*.min.js node_modules/@fortawesome/fontawesome-free/webfonts/*.woff* node_modules/leaflet/dist/*.js node_modules/leaflet/dist/*.css node_modules/leaflet/dist/images/* node_modules/jquery-datetimepicker/build/*.min.js node_modules/jquery-datetimepicker/build/*.min.css node_modules/lightbox2/dist/css/lightbox.min.css node_modules/lightbox2/dist/js/lightbox.min.js node_modules/lightbox2/dist/images/* assets/vndr", - "bundle": "npm run copy-composer && npm run copy-node-modules && cd ../ && dir-archiver --src sunflower --dest sunflower.zip --includebasedir true --exclude sunflower/Makefile sunflower/create-changelog.php sunflower/changelog.html sunflower/documentation sunflower/mkdocs sunflower/announcement.txt sunflower/.DS_Store sunflower/.stylelintrc.json sunflower/.eslintrc sunflower/.git sunflower/.gitattributes sunflower/.github sunflower/.gitignore sunflower/README.md sunflower/composer.json sunflower/composer.lock sunflower/node_modules sunflower/vendor sunflower/package-lock.json sunflower/package.json sunflower/.travis.yml sunflower/phpcs.xml.dist sunflower/sass sunflower/style.css.map sunflower/.favorites.json", + "bundle": "npm run copy-composer && npm run copy-node-modules && cd ../ && dir-archiver --src sunflower --dest sunflower.zip --includebasedir true --exclude Makefile create-changelog.php changelog.html documentation mkdocs announcement.txt .DS_Store .stylelintrc.json .eslintrc .git .gitattributes .github .gitignore README.md composer.json composer.lock node_modules vendor package-lock.json package.json .travis.yml phpcs.xml.dist sass style.css.map .favorites.json", "build": "wp-scripts build", "start": "wp-scripts start" },