From af244911342c999258fa59cebb9c57adf82437e6 Mon Sep 17 00:00:00 2001 From: fahminlb33 Date: Sun, 6 Sep 2020 11:59:38 +0700 Subject: [PATCH] Update workflow to include secrets --- .github/workflows/canary.yml | 6 ++++++ .github/workflows/stable.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index 3c4b1f1..c8f7fe4 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -16,6 +16,12 @@ jobs: with: submodules: 'recursive' + - name: Replace environment vars + uses: shitiomatic/str-replace@master + with: + find: "KFLEARNING_API_KEY" + replace: "${{ secrets.KFLEARNING_API_KEY }}" + - name: Run Cake Build run: PowerShell.exe -ExecutionPolicy Bypass -File ./build.ps1 --target Build-Incremental --configuration Debug diff --git a/.github/workflows/stable.yml b/.github/workflows/stable.yml index 4de39bd..4719e2a 100644 --- a/.github/workflows/stable.yml +++ b/.github/workflows/stable.yml @@ -15,6 +15,12 @@ jobs: with: submodules: 'recursive' + - name: Replace environment vars + uses: shitiomatic/str-replace@master + with: + find: "KFLEARNING_API_KEY" + replace: "${{ secrets.KFLEARNING_API_KEY }}" + - name: Run Cake Build run: PowerShell.exe -ExecutionPolicy Bypass -File ./build.ps1 --target Build-Incremental --configuration Release