Skip to content

Instantly share code, notes, and snippets.

@nicobytes
Last active August 3, 2020 20:14
Show Gist options
  • Select an option

  • Save nicobytes/8c7c0a2139af48b9fc217d107d7e7cc0 to your computer and use it in GitHub Desktop.

Select an option

Save nicobytes/8c7c0a2139af48b9fc217d107d7e7cc0 to your computer and use it in GitHub Desktop.

Revisions

  1. nicobytes revised this gist Oct 26, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion deploy-gh.sh
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ git branch -D gh-pages
    git push origin --delete gh-pages
    git checkout -b gh-pages
    ionic build --prod
    find . -type d ! -name 'www' ! -name '.git' ! -name '.' ! -name '..' -delete
    find . -type d ! -path './www*' ! -path './.git*' ! -path '.' | xargs rm -rf
    rm -r *.*
    mv www/* .
    rm -rf www
  2. nicobytes revised this gist Oct 26, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions deploy-gh.sh
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,7 @@ git push origin --delete gh-pages
    git checkout -b gh-pages
    ionic build --prod
    find . -type d ! -name 'www' ! -name '.git' ! -name '.' ! -name '..' -delete
    rm -r *.*
    mv www/* .
    rm -rf www
    git add .
  3. nicobytes created this gist Oct 21, 2017.
    12 changes: 12 additions & 0 deletions deploy-gh.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #!/bin/bash
    git branch -D gh-pages
    git push origin --delete gh-pages
    git checkout -b gh-pages
    ionic build --prod
    find . -type d ! -name 'www' ! -name '.git' ! -name '.' ! -name '..' -delete
    mv www/* .
    rm -rf www
    git add .
    git commit -m "Publishing to github pages"
    git push origin gh-pages
    git checkout master