add signalR and view #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mstaheri Development pipeline | |
on: | |
push: | |
branches: ["develop"] | |
pull_request: | |
branches: ["develop"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup .Net | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore Dependency | |
run: dotnet restore MSTSandogh.sln | |
- name: Build | |
run: dotnet build MSTSandogh.sln --no-restore | |
- name: Test | |
run: dotnet test MSTSandogh.sln --no-build --verbosity normal | |
- name: Publish | |
run: dotnet publish MSTSandogh.sln -c release --output ./Release | |
- name: App Setting Variable | |
uses: microsoft/variable-substitution@v1 | |
with: | |
files: './Release/appsettings.json' | |
env: | |
ConnectionStrings.sqlServer: ${{secrets.CONNECTION_STRING}} | |
- name: FTP Deploy | |
uses: SamKirkland/FTP-Deploy-Action@v4.3.4 | |
with: | |
server: ${{secrets.ftp_server}} | |
username: ${{secrets.ftp_user}} | |
password: ${{secrets.ftp_password}} | |
local-dir: ./Release/ |