aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorBobby <[email protected]>2024-06-06 15:16:30 +0000
committerBobby <[email protected]>2024-06-06 15:16:30 +0000
commitf34a3c0fc64c8e4b8f10235edd84ff87fac4ef66 (patch)
tree063b9c7389ad435fd55fb53bfaad2d34e1e96866 /.github
parente9096190c2833319c04a5de55b313330c4b51808 (diff)
downloadthatcomputerscientist-f34a3c0fc64c8e4b8f10235edd84ff87fac4ef66.tar.xz
thatcomputerscientist-f34a3c0fc64c8e4b8f10235edd84ff87fac4ef66.zip
AI Spam Check
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml21
1 files changed, 12 insertions, 9 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index b9e73c52..90f0922c 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -1,16 +1,19 @@
name: remote ssh command
on: [push]
jobs:
-
build:
name: Build
runs-on: ubuntu-latest
steps:
- - name: executing remote ssh commands using ssh key
- uses: appleboy/ssh-action@master
- with:
- host: ${{ secrets.HOST }}
- username: ${{ secrets.USERNAME }}
- key: ${{ secrets.KEY_ED25519 }}
- port: ${{ secrets.PORT }}
- script: sh /home/ubuntu/deploy.sh \ No newline at end of file
+ - name: executing remote ssh commands using ssh key
+ uses: appleboy/ssh-action@master
+ with:
+ host: ${{ secrets.HOST }}
+ username: ${{ secrets.USERNAME }}
+ key: ${{ secrets.KEY_ED25519 }}
+ port: ${{ secrets.PORT }}
+ script: |
+ if [ -z "$GEMINI_API_KEY" ]; then
+ export GEMINI_API_KEY=${{ secrets.GEMINI_API_KEY }}
+ fi
+ sh /home/ubuntu/deploy.sh