Skip to content

Commit

Permalink
Updated test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
petterannerwall committed Feb 24, 2022
1 parent 66fe060 commit 9bb5f57
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 28 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -15,28 +15,28 @@ 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
remote: ${{ secrets.TARGET }}
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
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 9bb5f57

Please sign in to comment.