Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
Merge #30
Browse files Browse the repository at this point in the history
30: Clone git repository into correct dir r=CAD97 a=CAD97

bors: r+
  • Loading branch information
bors[bot] committed Feb 19, 2018
2 parents 0c3145f + ae892d9 commit d733410
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ matrix:
script:
- cargo clippy -- -D clippy
# GitHub Pages
- env: CARGO_GHP_VERSION=0.3.0
- env: CARGO_GHP_VERSION=0.3.1
install:
- travis_wait cargo install cargo-ghp-upload --version $CARGO_GHP_VERSION || echo "cargo-ghp-upload already installed"
- cargo install cargo-ghp-upload --version $CARGO_GHP_VERSION || echo "cargo-ghp-upload already installed"
after_success:
- cargo ghp-upload -vvvr
allow_failures:
- env: CARGO_GHP_VERSION=0.3.0
- env: CARGO_GHP_VERSION=0.3.1
fast_finish: true

script:
Expand Down
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.3.1]

- Fixed builds when `./target/ghp` does not exists and the target repo has a GHP branch

## [0.3.0]

- Fixed builds on Travis always being picked up as a tag build instead of a branch build
Expand Down Expand Up @@ -34,7 +38,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Now can infer much more context from Git if not in Travis-like environment
- Default commit message changed

[Unreleased]: https://github.com/crate-ci/cargo-ghp-upload/compare/0.3.0...master
[Unreleased]: https://github.com/crate-ci/cargo-ghp-upload/compare/0.3.1...master
[0.3.1]: https://github.com/crate-ci/cargo-ghp-upload/compare/0.3.0...0.3.1
[0.3.0]: https://github.com/crate-ci/cargo-ghp-upload/compare/0.2.0...0.3.0
[0.2.0]: https://github.com/crate-ci/cargo-ghp-upload/compare/0.1.1...0.2.0
[0.1.1]: https://github.com/crate-ci/cargo-ghp-upload/compare/0.1.0...0.1.1
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-ghp-upload"
version = "0.3.0"
version = "0.3.1"
authors = ["CAD97 <[email protected]>"]
description = "Upload documentation straight to GitHub Pages, maintaining branch separation and history"

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To do that, you can minimally include the following in your Travis matrix:
```yaml
matrix:
include:
- env: GHP_UPLOAD_VERSION=0.3.0
- env: GHP_UPLOAD_VERSION=0.3.1
install:
- cargo install --version $GHP_UPLOAD_VERSION cargo-ghp-upload
script:
Expand Down Expand Up @@ -53,7 +53,7 @@ This crate will not change the contents of the uploaded directory.
## Customization

```
cargo-ghp-upload 0.3.0
cargo-ghp-upload 0.3.1
CAD97 <[email protected]>
Upload documentation straight to GitHub Pages, maintaining branch separation and history

Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ fn ghp_upload(branch: &str, origin: &str, args: &Args) -> Result<()> {
.args(&["clone", "--verbose"])
.args(&["--branch", &args.deploy_branch])
.args(&["--depth", "1"])
.args(&[origin, &args.deploy_branch])
.args(&[origin, ghp_dir.to_str().unwrap()])
.status()?;
if !status.success() {
// If clone fails, the remote doesn't exist
Expand Down

0 comments on commit d733410

Please sign in to comment.