diff options
| author | Bobby <[email protected]> | 2024-06-06 15:27:54 +0000 |
|---|---|---|
| committer | Bobby <[email protected]> | 2024-06-06 15:27:54 +0000 |
| commit | 246671c3a83648b2aa7fd834486393052a301ac9 (patch) | |
| tree | fd773543e2ff32c9d289ea77ce44b1a9e1fc2f09 /.github/workflows | |
| parent | f34a3c0fc64c8e4b8f10235edd84ff87fac4ef66 (diff) | |
| download | thatcomputerscientist-246671c3a83648b2aa7fd834486393052a301ac9.tar.xz thatcomputerscientist-246671c3a83648b2aa7fd834486393052a301ac9.zip | |
Add to env
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/main.yml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 90f0922c..70eed5b4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,10 @@ jobs: key: ${{ secrets.KEY_ED25519 }} port: ${{ secrets.PORT }} script: | - if [ -z "$GEMINI_API_KEY" ]; then - export GEMINI_API_KEY=${{ secrets.GEMINI_API_KEY }} - fi + # if [ -z "$GEMINI_API_KEY" ]; then + # export GEMINI_API_KEY=${{ secrets.GEMINI_API_KEY }} + # fi + # Add to /home/ubuntu/.env + grep -qxF 'GEMINI_API_KEY=${{ secrets.GEMINI_API_KEY }}' /home/ubuntu/.env || echo 'GEMINI_API_KEY=${{ secrets.GEMINI_API_KEY }}' >> /home/ubuntu/.env + cat /home/ubuntu/.env sh /home/ubuntu/deploy.sh |
