Skip to content

Commit 0b63825

Browse files
committed
Select publish target
1 parent c6a009e commit 0b63825

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/test.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ jobs:
1616
- name: Deploy Rust to GitHub Pages
1717
uses: valkyrie-language/[email protected]
1818
with:
19-
config: .config/rust-publish.toml
19+
config: .config/rust-publish.toml
20+
mode: all

projects/publish-rs/src/commands/mod.rs

+8
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,20 @@ use crate::{
55
use std::{
66
path::{Path, PathBuf},
77
};
8+
use std::env::VarError;
89
use crate::bindings::GithubTarget;
910

1011
pub struct RunningContext {}
1112

1213
impl Guest for RunningContext {
1314
fn run_with_config(config: String, target: GithubTarget) -> Result<(), GithubError> {
15+
match std::env::var("INPUT_CONFIG") {
16+
Ok(o) => {o}
17+
Err(_) => {
18+
println!("MissingConfig {}")
19+
}
20+
}
21+
1422
tokio::runtime::Builder::new_current_thread().enable_all().build()?.block_on(async {
1523
let ctx = RunningContext {};
1624
ctx.run(config).await

0 commit comments

Comments
 (0)