File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
projects/publish-rs/src/commands Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1414 os : [ubuntu-latest, macos-latest, windows-latest]
1515 steps :
1616 - name : Deploy Rust to GitHub Pages
17- uses : valkyrie-language/github-rust-publish@v0.0.3
17+ uses : valkyrie-language/github-rust-publish@v0.0.4
1818 with :
1919 config : .config/rust-publish.toml
2020 mode : all
Original file line number Diff line number Diff line change 1- use crate :: bindings:: GithubTarget ;
21use crate :: {
3- bindings , bindings:: { export , Guest } ,
4- GithubError ,
2+ GithubError , bindings,
3+ bindings :: { GithubTarget , Guest , export } ,
54} ;
6- use std:: collections:: HashMap ;
7- use std:: path:: Path ;
5+ use std:: { collections:: HashMap , path:: Path } ;
86
97pub struct RunningContext { }
108
119impl Guest for RunningContext {
1210 fn run_with_config ( config : String , target : GithubTarget ) -> Result < ( ) , GithubError > {
1311 match std:: env:: var ( "INPUT_CONFIG" ) {
14- Ok ( o) => { o}
12+ Ok ( o) => {
13+ println ! ( "Config Path: {}" , o) ;
14+ }
1515 Err ( e) => {
1616 println ! ( "MissingConfig {}" , e) ;
17- return Ok ( ( ) )
1817 }
1918 }
20-
2119 tokio:: runtime:: Builder :: new_current_thread ( ) . enable_all ( ) . build ( ) ?. block_on ( async {
2220 let ctx = RunningContext { } ;
2321 ctx. run ( config) . await
@@ -62,7 +60,8 @@ fn read_dir(dir_path: &str) {
6260 println ! ( "{}" , file_name. to_string_lossy( ) ) ;
6361 }
6462 }
65- } else {
63+ }
64+ else {
6665 println ! ( "Error reading directory: {}" , dir_path) ;
6766 }
6867}
You can’t perform that action at this time.
0 commit comments