Skip to content

Commit

Permalink
🚀 publish
Browse files Browse the repository at this point in the history
  • Loading branch information
niuhuan committed Jan 9, 2024
1 parent 9794162 commit c59aeb3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ci/src/check_asset/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const UA: &str = "niuhuan jasmine ci";

#[tokio::main]
async fn main() -> Result<()> {
let gh_token = std::env::var("GH_TOKEN")?;
let gh_token = std::env::var("GITHUB_TOKEN")?;
if gh_token.is_empty() {
panic!("Please set GH_TOKEN");
panic!("Please set GITHUB_TOKEN");
}
let flutter_version = std::env::var("flutter_version")?;
if flutter_version.is_empty() {
Expand Down
4 changes: 2 additions & 2 deletions ci/src/check_release/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const MAIN_BRANCH: &str = "master";
#[tokio::main]
async fn main() -> Result<()> {
// get ghToken
let gh_token = std::env::var("GH_TOKEN")?;
let gh_token = std::env::var("GITHUB_TOKEN")?;
if gh_token.is_empty() {
panic!("Please set GH_TOKEN");
panic!("Please set GITHUB_TOKEN");
}

let vs_code_txt = tokio::fs::read_to_string("version.code.txt").await?;
Expand Down
2 changes: 1 addition & 1 deletion ci/src/upload_asset/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const UA: &str = "niuhuan jasmine ci";
#[tokio::main]
async fn main() -> Result<()> {
// get ghToken
let gh_token = std::env::var("GH_TOKEN")?;
let gh_token = std::env::var("GITHUB_TOKEN")?;
let target = std::env::var("TARGET")?;
let flutter_version = std::env::var("flutter_version")?;

Expand Down

0 comments on commit c59aeb3

Please sign in to comment.