Deploy Update #70
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: Go Live | |
# Trigger Points | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
GoLive: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Connect Tailscale | |
uses: tailscale/github-action@v2 | |
with: | |
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} | |
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} | |
tags: tag:ci | |
- name: Deploy to server | |
run: | | |
echo "Login To Machine Was SuccessFull" | |
ssh -o "StrictHostKeyChecking no" ubuntu@sora " | |
cd ~/server/mail/ && sh ./.scripts/live.sh | |
" | |