From 3302f39694ab0b53f5cfa715cd53cbcfd14f19e8 Mon Sep 17 00:00:00 2001 From: Tyler Erickson Date: Mon, 19 Sep 2022 14:10:52 -0700 Subject: [PATCH] Write EE credentials in deployment workflow --- .github/workflows/deploy.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 04f339e..2ff32c3 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -5,7 +5,14 @@ on: workflow_dispatch: jobs: deploy: + environment: CI runs-on: ubuntu-latest steps: + - name: Write Earth Engine credentials file + run: | + mkdir -p /home/runner/.config/earthengine + ls -l /home/runner/.config/earthengine/ + echo ${{ secrets.SECRET_CREDENTIALS }} | base64 --decode > /home/runner/.config/earthengine/credentials + ls -l /home/runner/.config/earthengine/ - uses: fastai/workflows/quarto-ghp@master with: {pre: 1}