Make release and documentation more sane.

OK, I think I have this nailed now.
This commit is contained in:
Luke Murphy 2017-10-04 18:43:21 +02:00
parent 9969dd3410
commit 5eba2a45b7
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 6 additions and 21 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
proddist/
dist/
.sass-cache/
.jekyll-metadata

View File

@ -2,18 +2,17 @@ DEV_DIST_DIR:=dist
PROD_DIST_DIR:=proddist
PROD_REMOTE:=git@gitlab.com:autonomic-cooperative/autonomic-cooperative.gitlab.io.git
PROD_BRANCH:=production
PROD_BASE_URL:=https://autonomic.zone
devserver:
@echo "Serving development site from $(DEV_DIST_DIR)"
@jekyll serve --watch --incremental --destination $(DEV_DIST_DIR)
.PHONY: devserver
proddist:
@echo "Building production site into $(PROD_DIST_DIR)"
@jekyll build --destination $(PROD_DIST_DIR)
.PHONY: proddist
release:
@echo "Building production site into $(PROD_DIST_DIR)"
@jekyll build --destination $(PROD_DIST_DIR) --baseurl $(PROD_BASE_URL)
@echo "Pushing $(PROD_DIST_DIR) contents to the upstream production branch"
@git subtree push --prefix $(PROD_DIST_DIR) $(PROD_REMOTE) $(PROD_BRANCH)
.PHONY: release

View File

@ -17,16 +17,7 @@ Please see [CONTRIBUTING.md] for the juicy details.
# Make A New Release
Our production site is contained in the [proddist folder]. You'll need to make
sure you have the latest changes by running:
```bash
$ make proddist
```
If you see any unstaged changes, please verify them with someone and push them
to the upstream master remote. Make sure the latest pipeline is passing and tag
HEAD with:
Firstly, you'll need to tag and push the latest HEAD with:
```bash
$ git tag -a <YOUR-VERSION-NUMBER> $(git rev-parse HEAD)
@ -38,9 +29,3 @@ Then make a release with:
```bash
$ make release
```
This pushes the contents of the [proddist folder] to the production
branch which will get picked up by our production instance of
the site.
[proddist folder]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/tree/master/proddist