-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RELEASE] 0.1.0 #10
Merged
Merged
[RELEASE] 0.1.0 #10
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ build/ | |
polyrepo-settings.gradle | ||
dev/ | ||
docker-sources/ | ||
**/site/ | ||
docs/0.x/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Change Log | ||
========== | ||
|
||
## Version 0.1.0 | ||
|
||
_2019-07-16_ | ||
|
||
* Initial release. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
POM_ARTIFACT_ID=barber | ||
POM_NAME=barber | ||
POM_PACKAGING=jar |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# The website is built using MkDocs with the Material theme. | ||
# https://squidfunk.github.io/mkdocs-material/ | ||
# It requires Python to run. | ||
# Install the packages with the following command: | ||
# pip install mkdocs mkdocs-material | ||
|
||
set -ex | ||
|
||
REPO="git@github.com:cashapp/barber.git" | ||
DIR=temp-clone | ||
|
||
# Delete any existing temporary website clone | ||
rm -rf $DIR | ||
|
||
# Clone the current repo into temp folder | ||
git clone $REPO $DIR | ||
|
||
# Move working directory into temp folder | ||
cd $DIR | ||
|
||
# Generate the API docs | ||
./gradlew \ | ||
:barber:dokka | ||
|
||
# Copy in special files that GitHub wants in the project root. | ||
cat README.md | grep -v 'project website' > docs/index.md | ||
cp CHANGELOG.md docs/changelog.md | ||
|
||
# Build the site and push the new files up to GitHub | ||
mkdocs gh-deploy | ||
|
||
# Delete our temp folder | ||
cd .. | ||
rm -rf $DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
@font-face { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice |
||
font-family: cash-market; | ||
src: url("https://cash-f.squarecdn.com/static/fonts/cash-market/v2/CashMarket-Regular.woff2") format("woff2"); | ||
font-weight: 400; | ||
font-style: normal | ||
} | ||
|
||
@font-face { | ||
font-family: cash-market; | ||
src: url("https://cash-f.squarecdn.com/static/fonts/cash-market/v2/CashMarket-Medium.woff2") format("woff2"); | ||
font-weight: 500; | ||
font-style: normal | ||
} | ||
|
||
@font-face { | ||
font-family: cash-market; | ||
src: url("https://cash-f.squarecdn.com/static/fonts/cash-market/v2/CashMarket-Bold.woff2") format("woff2"); | ||
font-weight: 700; | ||
font-style: normal | ||
} | ||
|
||
body, input { | ||
font-family: cash-market,"Helvetica Neue",helvetica,sans-serif; | ||
} | ||
|
||
.md-typeset h1, .md-typeset h2, .md-typeset h3, .md-typeset h4 { | ||
font-family: cash-market,"Helvetica Neue",helvetica,sans-serif; | ||
line-height: normal; | ||
font-weight: bold; | ||
color: #353535; | ||
} | ||
|
||
button.dl { | ||
font-weight: 300; | ||
font-size: 25px; | ||
line-height: 40px; | ||
padding: 3px 10px; | ||
display: inline-block; | ||
border-radius: 6px; | ||
color: #f0f0f0; | ||
margin: 5px 0; | ||
width: auto; | ||
} | ||
|
||
.logo { | ||
text-align: center; | ||
margin-top: 150px; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
Releasing | ||
========= | ||
|
||
1. Update `CHANGELOG.md`. | ||
|
||
2. Set versions: | ||
|
||
``` | ||
export RELEASE_VERSION=X.Y.Z | ||
export NEXT_VERSION=X.Y.Z-SNAPSHOT | ||
``` | ||
|
||
3. Update, build, and upload: | ||
|
||
``` | ||
sed -i "" \ | ||
"s/VERSION_NAME=.*/VERSION_NAME=$RELEASE_VERSION/g" \ | ||
gradle.properties | ||
sed -i "" \ | ||
"s/\"app.cash.barber:\([^\:]*\):[^\"]*\"/\"app.cash.barber:\1:$RELEASE_VERSION\"/g" \ | ||
`find . -name "README.md"` | ||
./gradlew clean uploadArchives | ||
``` | ||
|
||
4. Visit [Sonatype Nexus](https://oss.sonatype.org/) to promote (close then release) the artifact. Or drop it if there is a problem! | ||
|
||
5. Tag the release, prepare for the next one, and push to GitHub. | ||
|
||
``` | ||
git commit -am "Prepare for release $RELEASE_VERSION." | ||
git tag -a barber-$RELEASE_VERSION -m "Version $RELEASE_VERSION" | ||
sed -i "" \ | ||
"s/VERSION_NAME=.*/VERSION_NAME=$NEXT_VERSION/g" \ | ||
gradle.properties | ||
git commit -am "Prepare next development version." | ||
git push && git push --tags | ||
``` | ||
|
||
|
||
Prerequisites | ||
------------- | ||
|
||
Generate a GPG key (RSA, 4096 bit, 3650 day) expiry, or use an existing one. | ||
``` | ||
$ gpg --full-generate-key | ||
``` | ||
|
||
Upload the GPG keys to public servers | ||
|
||
``` | ||
$ gpg --list-keys --keyid-format LONG | ||
/Users/johnbarber/.gnupg/pubring.kbx | ||
------------------------------ | ||
pub rsa4096/XXXXXXXXXXXXXXXX 2019-07-16 [SC] [expires: 2029-07-13] | ||
YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY | ||
uid [ultimate] John Barber <jbarber@cash.app> | ||
sub rsa4096/ZZZZZZZZZZZZZZZZ 2019-07-16 [E] [expires: 2029-07-13] | ||
|
||
$ gpg --send-keys --keyserver keyserver.ubuntu.com XXXXXXXXXXXXXXXX | ||
``` | ||
|
||
In `~/.gradle/gradle.properties`, set the following: | ||
|
||
* `SONATYPE_NEXUS_USERNAME` - Sonatype username for releasing to `app.cash`. | ||
* `SONATYPE_NEXUS_PASSWORD` - Sonatype password for releasing to `app.cash`. | ||
* `signing.keyId` - key ID for GPG key. Example: `1A2345F8`. Get with the following command: | ||
``` | ||
$ gpg --list-keys --keyid-format SHORT | ||
``` | ||
* `signing.password` - password for GPG key, recommended to be empty. | ||
* `signing.secretKeyRingFile` - absoluate file path for `secring.gpg`. Example: `/Users/johnbarber/.gnupg/secring.gpg`. | ||
* You may need to export this file manually with the following command where `XXXXXXXX` is the same `keyId` as above: | ||
``` | ||
$ gpg --keyring secring.gpg --export-secret-key XXXXXXXX > ~/.gnupg/secring.gpg | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
GROUP=app.cash.barber | ||
VERSION_NAME= | ||
org.gradle.jvmargs='-Dfile.encoding=UTF-8' | ||
|
||
GROUP=app.cash.barber | ||
VERSION_NAME=1.0.0-SNAPSHOT | ||
|
||
POM_URL=https://github.com/cashapp/barber/ | ||
POM_SCM_URL=https://github.com/cashapp/barber/ | ||
POM_SCM_CONNECTION=scm:git:git://github.com/cashapp/barber.git | ||
POM_SCM_CONNECTION=scm:git:https://github.com/cashapp/barber.git | ||
POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/cashapp/barber.git | ||
|
||
POM_LICENCE_NAME=The Apache Software License, Version 2.0 | ||
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt | ||
POM_LICENCE_DIST=repo | ||
|
||
POM_DEVELOPER_ID=square | ||
POM_DEVELOPER_NAME=Square, Inc. | ||
|
||
POM_DEVELOPER_NAME=Square, Inc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
site_name: Barber | ||
repo_name: Barber | ||
repo_url: https://github.com/cashapp/barber | ||
site_description: "A Barber" | ||
site_author: Square, Inc. | ||
remote_branch: gh-pages | ||
|
||
copyright: 'Copyright © 2019 Square, Inc.' | ||
|
||
theme: | ||
name: 'material' | ||
favicon: img/favicon.ico | ||
logo: img/cashapp.png | ||
feature: | ||
tabs: false | ||
palette: | ||
primary: 'grey' | ||
accent: 'green' | ||
|
||
extra_css: | ||
- 'css/app.css' | ||
|
||
markdown_extensions: | ||
- smarty | ||
- codehilite: | ||
guess_lang: false | ||
- footnotes | ||
- meta | ||
- toc: | ||
permalink: true | ||
- pymdownx.betterem: | ||
smart_enable: all | ||
- pymdownx.caret | ||
- pymdownx.inlinehilite | ||
- pymdownx.magiclink | ||
- pymdownx.smartsymbols | ||
- pymdownx.superfences | ||
- tables | ||
|
||
nav: | ||
- 'Overview': index.md | ||
- 'Stack Overflow ⏏': https://stackoverflow.com/questions/tagged/barber?sort=active | ||
- '0.x API': 0.x/barber/app/cash/barber/index.md | ||
- 'Change Log': changelog.md | ||
- 'Releasing': releasing.md | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include 'client' | ||
include 'barber' |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not 11?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@swankjesse : 11 doesn't give us much at this point over 8 with respect to the docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
11 is more strict about some things and I’m not sure whether it works or not. Worth trying if there’s anything from 11 we need.