aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-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