diff --git a/Makefile b/Makefile index 033a2ce..b35da29 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ publish-docker: build-docker ## Publish docker image of application to Github run-docker: ## Build and Run all docker services docker-compose up -d --build -publish-jar: ## Publish JAR file to Github +publish-maven: ## Publish JAR file to Github git diff --quiet --exit-code || (echo "The git is DIRTY !!! You cannot publish this crap!" && exit 1) gradlew publish diff --git a/README.md b/README.md index 4c10cd9..6ab0861 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ -# Installation +# DC Project -## On windows +## Installation of Development environment +### On windows 1. Install git - Download and install: https://git-scm.com/download/win 2. Install Make @@ -9,14 +10,26 @@ - Extract zip. - Copy the contents to your `Git\mingw64\` merging the folders, but **do NOT overwrite/replace** any existing files. -## Run dockers - - +### Run dockers ```bash $ make run-docker ``` -## Add fixtures +### Add fixtures ```bash $ make fixtures +``` + +## Publish package +1. Got to [https://github.com](https://github.com/settings/tokens/new) and create a new token with packages scopes +2. Create a file `GH_TOKEN.txt` and put it the github token + +### Maven +```bash +$ make publish-maven +``` +### Docker + +```bash +$ make publish-docker ``` \ No newline at end of file