Skip to content

Continuous Deployment #1

Continuous Deployment

Continuous Deployment #1

Workflow file for this run

name: Continuous Delivery
on:
workflow_dispatch:
workflow_run:
workflows: [ "Continuous Integration" ]
types: [ "completed" ]
branches: [ "main" ]
jobs:
deploy:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Publish
run: dotnet publish ./src/Numerous.Web/Numerous.Web.csproj -c Release --os linux -o ./dist
- name: Deploy
run: >
systemctl stop $SERVICE_NAME &&
mv -f ./dist/* $DEPLOYMENT_PATH &&
systemctl start $SERVICE_NAME