Merge pull request #2 from Dog2657/Dog2657-patch-2 #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
- main | |
jobs: | |
deploy: | |
name: "Deploy" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Remote SSH Commands | |
# You may pin to the exact commit or the version. | |
# uses: fifsky/ssh-action@58b3c484be9c20cf118fd3b939a6d2cb3c769512 | |
uses: fifsky/[email protected] | |
with: | |
command: | | |
cd /Rust-Wordle-Api | |
ls | |
git pull | |
git status | |
docker-compose up --build -d | |
host: ${{ secrets.DEPLOY_SSH_HOST }} | |
user: ${{ secrets.DEPLOY_SSH_USER }} | |
key: ${{ secrets.DEPLOY_SSH_KEY }} |