Skip to content

Commit

Permalink
fix gh-pages publish cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjavi committed Oct 31, 2020
1 parent 2b9c7f0 commit 353fb75
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ WORKDIR /app
RUN apt-get update && \
apt-get install -y git zsh jq imagemagick ffmpeg pandoc

RUN git config --global user.email "[email protected]" && \
git config --global user.name "No one"

ENTRYPOINT ["/app/src/scripts/run.sh"]
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ version:
install:
$(DC_RUN) install

publish:
$(DC_RUN) publish-gh-pages
publish-npm:
npm publish

publish-pages:
./src/scripts/publish-gh-pages.sh

spritesheets:
$(DC_RUN) generate-all-spritesheets
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,14 @@ You can find all data under [assets/data](https://github.com/itsjavi/pokemon-ass

## Maintenance

The only dependency you need to maintain this project is Docker and
The only dependencies you need to maintain this project are git, zsh, Docker and
the ability to run `make` commands. The most important ones are:


- `make install`: initializes the project dependencies, needed to build the assets.
- `make build`: builds the assets.
- `make publish`: publishes to the gh-pages branch and to npm. This one needs remote permissions.
- `make publish-pages`: publishes the current assets to the gh-pages branch
- `make publish-npm`: publishes the current assets to npm with the current package.json version


## Credits
Expand Down
3 changes: 3 additions & 0 deletions src/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ mkdir -p tmp assets

rm -rf .gh-pages
git clone -b gh-pages https://github.com/itsjavi/pokemon-assets.git .gh-pages
cd .gh-pages
git remote set-url --push origin [email protected]:itsjavi/pokemon-assets.git
cd ..

rm -rf tmp/pandoc-css
git clone https://gist.github.com/f77dbd6bbde10d255dfe6c8e1f830142.git tmp/pandoc-css
Expand Down

0 comments on commit 353fb75

Please sign in to comment.