Skip to content

Instantly share code, notes, and snippets.

View vladyslav-dotsenko's full-sized avatar

Vlad Dotsenko vladyslav-dotsenko

View GitHub Profile
#!/bin/bash
# Check if the input file is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <input-file.xcf>"
exit 1
fi
# Input XCF file
input_file="$1"
git checkout master &&
git branch -D gh-pages &&
git branch gh-pages &&
git checkout gh-pages &&
yarn install &&
yarn build &&
rm -rf node_modules public README.md src yarn.lock build-gh-pages.sh &&
mv build/* ./ &&
rm -rf build &&
git add . &&