Skip to content

Commit

Permalink
Merge pull request #419 from verdigado/task/fix-workflow
Browse files Browse the repository at this point in the history
Fix deployment workflow
  • Loading branch information
albig authored Nov 2, 2023
2 parents 653d977 + ee3c4f0 commit bb3bf85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/<version>[^<]*/<version>$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'"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit bb3bf85

Please sign in to comment.