-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9115018
commit b9eb1ef
Showing
9 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
|
@@ -3,7 +3,8 @@ use std::path::Path; | |
use anyhow::Result; | ||
use infra_utils::commands::Command; | ||
use infra_utils::paths::PathExtensions; | ||
use infra_utils::pipenv::PipEnv; | ||
|
||
use crate::toolchains::pipenv::PipEnv; | ||
|
||
pub struct Mkdocs; | ||
|
||
|
@@ -25,16 +26,14 @@ impl Mkdocs { | |
} | ||
|
||
pub fn publish(dry_run: bool) -> Result<()> { | ||
// Fetch the latest github pages from the remote repository: | ||
Command::new("git") | ||
.args(["fetch", "origin", "gh-pages"]) | ||
.property("--depth", "1") | ||
.run()?; | ||
|
||
// only once: | ||
// mike set-default [identifier] | ||
|
||
// # git config user.name ci-bot | ||
// # git config user.email [email protected] | ||
// # git config user.name github-actions | ||
// # git config user.email [email protected] | ||
|
||
// - run: "python3 -m pipenv run mike deploy main" | ||
// if (dry_run) add "--push" to the "deploy" command | ||
|
@@ -43,6 +42,8 @@ impl Mkdocs { | |
// # use 'mike list [identifier]' first to check if the version exists | ||
// # - run: "python3 -m pipenv run mike deploy 0.15.0 latest --update-aliases --push" | ||
// if (dry_run) add "--push" to the "deploy" command | ||
|
||
Ok(()) | ||
} | ||
} | ||
|
||
|
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,2 +1,3 @@ | ||
pub mod mkdocs; | ||
pub mod napi; | ||
pub mod pipenv; |
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 |
---|---|---|
|
@@ -62,8 +62,6 @@ impl TemporaryChangeset { | |
Command::new("git").arg("diff").flag("--cached").run()?; | ||
|
||
Command::new("git") | ||
.property("-c", "user.name=github-actions") | ||
.property("-c", "[email protected]") | ||
.arg("commit") | ||
.property("--message", &self.message) | ||
.run()?; | ||
|
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 |
---|---|---|
|
@@ -4,5 +4,4 @@ pub mod commands; | |
pub mod git; | ||
pub mod github; | ||
pub mod paths; | ||
pub mod pipenv; | ||
pub mod terminal; |