From 4adb6d600ef0fc3fab18821ce4494b09dac4f4d5 Mon Sep 17 00:00:00 2001 From: DTieman Date: Fri, 24 Mar 2023 17:50:12 +0100 Subject: [PATCH] workflow? --- .github/workflows/main.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2d7fc04..8c58139 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: El Tigre - MauMau Server +name: Build Mau & Deploy Mau on: push: @@ -34,5 +34,14 @@ jobs: run: dotnet build --configuration Release --no-restore - name: Test run: dotnet test --no-restore --verbosity normal - - name: Docker Test - run: docker run hello-world \ No newline at end of file + deploy: + runs-on: self-hosted + needs: build + steps: + - name: Checkout + uses: actions/checkout@main + with: + fetch-depth: 0 + - name: Docker Compose + run: docker compose up -d --build + \ No newline at end of file