diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 787c91c..0bcb783 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Build Mau & Deploy Mau +name: Build Mau & Deploy Mau on: push: @@ -20,30 +20,27 @@ jobs: build: runs-on: self-hosted steps: - - name: a - run: reboot now - # - name: Checkout - # uses: actions/checkout@main - # with: - # fetch-depth: 0 - # - name: Setup .NET Core - # uses: actions/setup-dotnet@main - # with: - # dotnet-version: 7.0.x - # - name: Install dependencies - # run: dotnet restore - # - name: Build - # run: dotnet build --configuration Release --no-restore - # - name: Test - # run: dotnet test --no-restore --verbosity normal - # 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 - + - name: Checkout + uses: actions/checkout@main + with: + fetch-depth: 0 + - name: Setup .NET Core + uses: actions/setup-dotnet@main + with: + dotnet-version: 7.0.x + - name: Install dependencies + run: dotnet restore + - name: Build + run: dotnet build --configuration Release --no-restore + - name: Test + run: dotnet test --no-restore --verbosity normal + 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