readme #3
Workflow file for this run
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: Deploy on Tag Push | |
on: | |
push: | |
tags: | |
- '*.*.*' | |
jobs: | |
deploy: | |
name: Deploy to Server | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up SSH | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Deploy to Server | |
run: | | |
echo "run srtipt on server" | |
ssh -o StrictHostKeyChecking=no robert04@${{ secrets.SERVER_HOST }} \ | |
<< EOF | |
cd /home/robert04/domains/demo.cmsrs.pl | |
git checkout master | |
git pull origin master | |
./rs/go/__warning____go_clear_and_load_demo_server.sh | |
EOF |