Skip to content

Commit

Permalink
changed gitignore and deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schweig committed Feb 7, 2024
1 parent d8389e4 commit a4c3bf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 33 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.DS_Store
node_modules/
/dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
Expand Down
34 changes: 2 additions & 32 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,6 @@
# abort on errors
set -e

# build
npm run build
cd dist && cp index.html 404.html && cd ..

# navigate into the build output directory
cd dist
# copy index.html for routes
# rm -r phoenix greenbox querybuilder codesnippets knimehub legal
mkdir phoenix greenbox querybuilder codesnippets knimehub mechanics thesis legal about scenariomanager esgehtlos trafficticket
cp index.html phoenix
cp index.html greenbox
cp index.html querybuilder
cp index.html codesnippets
cp index.html knimehub
cp index.html mechanics
cp index.html scenariomanager
cp index.html esgehtlos
cp index.html thesis
cp index.html trafficticket
cp index.html about
cp index.html legal
# copy README.md over
cp ../README.md ./
# create CNAME file to prevent overwritten custom domain on deploy
# see https://github.com/tschaub/gh-pages/issues/213
echo "johannesschweig.de" >> CNAME

git init
git checkout -b main
git add -A
git commit -m 'deploy'
git push -f git@github.com:johannesschweig/johannesschweig.github.io.git main

cd -
git subtree push --prefix dist origin gh-pages

0 comments on commit a4c3bf5

Please sign in to comment.