Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ihatetmat authored May 14, 2024
1 parent 05bcd8d commit f87d574
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CICD-SSH
on:
push:
branches: [ main ]
paths:
- '**'

jobs:
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.SSH_KEY }}
port: 22
script: |
source /home/pl120943/anaconda3/etc/profile.d/conda.sh
conda activate temp
git pull origin main
cd source
python download.py

0 comments on commit f87d574

Please sign in to comment.