Skip to content

Commit ebf2d1b

Browse files
committed
Git needs checkout first
1 parent f70da50 commit ebf2d1b

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

.github/workflows/test.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ jobs:
1313
matrix:
1414
os: [ubuntu-latest, macos-latest, windows-latest]
1515
steps:
16-
- uses: actions/checkout@v4
17-
- name: Deploy Rust to GitHub Pages
18-
uses: valkyrie-language/[email protected]
16+
- name: Checkout Repository
17+
uses: actions/checkout@v4
18+
- name: Publish Rust Binaries
19+
uses: valkyrie-language/[email protected]
1920
with:
2021
config: .config/rust-publish.toml
2122
mode: all

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

+3-11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use crate::{
33
bindings::{GithubTarget, Guest, export},
44
};
55
use std::{collections::HashMap, path::Path};
6+
use std::collections::BTreeMap;
67

78
pub struct RunningContext {}
89

@@ -31,19 +32,10 @@ impl RunningContext {
3132
read_dir(&s)
3233
}
3334
Err(e) => {
34-
println!("{}", e)
35+
println!(" {}", e)
3536
}
3637
}
37-
match std::env::var("RUNNER_WORKSPACE") {
38-
Ok(s) => {
39-
println!("RUNNER_WORKSPACE");
40-
read_dir(&s)
41-
}
42-
Err(e) => {
43-
println!("{}", e)
44-
}
45-
}
46-
let mut envs = HashMap::new();
38+
let mut envs = BTreeMap::new();
4739
for (key, value) in std::env::vars() {
4840
envs.insert(key, value);
4941
}

0 commit comments

Comments
 (0)