mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-27 04:44:30 +00:00
Use the amplitude API key secret on CI
Co-authored-by: Joseph Lyons <joseph@zed.dev>
This commit is contained in:
parent
3bd68128d7
commit
c1c5eaeaf9
2 changed files with 3 additions and 2 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -56,6 +56,7 @@ jobs:
|
|||
MACOS_CERTIFICATE_PASSWORD: ${{ secrets.MACOS_CERTIFICATE_PASSWORD }}
|
||||
APPLE_NOTARIZATION_USERNAME: ${{ secrets.APPLE_NOTARIZATION_USERNAME }}
|
||||
APPLE_NOTARIZATION_PASSWORD: ${{ secrets.APPLE_NOTARIZATION_PASSWORD }}
|
||||
ZED_AMPLITUDE_API_KEY: ${{ secrets.ZED_AMPLITUDE_API_KEY }}
|
||||
steps:
|
||||
- name: Install Rust
|
||||
run: |
|
||||
|
|
|
@ -3,8 +3,8 @@ use std::process::Command;
|
|||
fn main() {
|
||||
println!("cargo:rustc-env=MACOSX_DEPLOYMENT_TARGET=10.14");
|
||||
|
||||
if let Ok(api_key) = std::env::var("AMPLITUDE_API_KEY") {
|
||||
println!("cargo:rustc-env=AMPLITUDE_API_KEY={api_key}");
|
||||
if let Ok(api_key) = std::env::var("ZED_AMPLITUDE_API_KEY") {
|
||||
println!("cargo:rustc-env=ZED_AMPLITUDE_API_KEY={api_key}");
|
||||
}
|
||||
|
||||
let output = Command::new("npm")
|
||||
|
|
Loading…
Reference in a new issue