Skip to content

Merge pull request #2 from twpol/twpol/issue1 #1

Merge pull request #2 from twpol/twpol/issue1

Merge pull request #2 from twpol/twpol/issue1 #1

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Publish
run: dotnet publish --configuration Release --runtime linux-x64 --no-self-contained
- name: Deploy
uses: easingthemes/[email protected]
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i --delete"
SOURCE: "bin/Release/net6.0/linux-x64/publish/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}
SCRIPT_AFTER: |
sudo systemctl restart openrails-telemetry.service