From 9bb5f57072335a92368cadc2971f509cacbea0e6 Mon Sep 17 00:00:00 2001 From: Petter Date: Thu, 24 Feb 2022 22:00:11 +0100 Subject: [PATCH] Updated test workflows --- .github/workflows/dotnet.yml | 22 +++++++++++----------- .github/workflows/test.yml | 17 ----------------- 2 files changed, 11 insertions(+), 28 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index a1402b95..41e2e682 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,10 +1,10 @@ -name: .NET +name: Release to Exilence Backend CI/CD -on: - push: - branches: [ dev ] - pull_request: - branches: [ dev ] +# on: +# push: +# branches: [ dev ] +# pull_request: +# branches: [ dev ] defaults: run: @@ -15,20 +15,20 @@ jobs: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - - name: Setup .NET + - name: Setup .NET Core 3.1.x uses: actions/setup-dotnet@v1 with: dotnet-version: 3.1.x - - name: Publish + - name: Publish release artifacts run: dotnet publish -c release -r ubuntu.18.04-x64 -o deploy - - name: Stop service + - name: Stop backend service uses: garygrossgarten/github-action-ssh@v0.3.0 with: command: sudo systemctl stop exilence-next.service host: ${{ secrets.HOST }} username: ${{ secrets.USER }} password: ${{ secrets.SECRET }} - - name: Copy files + - name: Copy release artefacts uses: garygrossgarten/github-action-scp@v0.5.3 with: local: /home/runner/work/exilence-next/exilence-next/ExilenceNextBackend/deploy @@ -36,7 +36,7 @@ jobs: host: ${{ secrets.HOST }} username: ${{ secrets.USER }} password: ${{ secrets.SECRET }} - - name: Start service + - name: Start backend service uses: garygrossgarten/github-action-ssh@v0.3.0 with: command: sudo systemctl start exilence-next.service diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index d6710ad9..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Command via SSH - -on: push - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: ls -a via ssh - uses: garygrossgarten/github-action-ssh@release - with: - command: ls -a - host: ${{ secrets.HOST }} - username: root - password: ${{ secrets.SECRET}} - tryKeyboard: true