Skip to content

Merge pull request #5 from ErSoul/f/dotnet-container #5

Merge pull request #5 from ErSoul/f/dotnet-container

Merge pull request #5 from ErSoul/f/dotnet-container #5

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
branches: [ "main" ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Publish
run: dotnet publish dotpaste/dotpaste.csproj -c Release -o build
- name: Upload to server
uses: ErSoul/[email protected]
with:
host: ${{vars.SSH_HOST}}
username: ${{secrets.SSH_USER}}
key: ${{secrets.SSH_KEY}}
source: ./build/*
target: /srv/dotpaste
after: systemctl --user restart dotpaste