From 8082c81cc3e2a23d16eca84d10091baebbc10c01 Mon Sep 17 00:00:00 2001 From: Alexander Nekrasov <59678267+AleksanderNekr@users.noreply.github.com> Date: Tue, 17 Oct 2023 22:07:04 +0500 Subject: [PATCH 1/8] Update dotnet.yml --- .github/workflows/dotnet.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 79b0298..053ae8b 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -22,9 +22,9 @@ jobs: - name: 📂 Deploy to FTP server uses: SamKirkland/FTP-Deploy-Action@v4.3.4 with: - server: win6055.site4now.net - username: chesstourmanager-001 + server: web-api.somee.com + username: AlexSmith1 password: ${{ secrets.FTP_PASSWORD }} local-dir: /publish/ - server-dir: chess-tour-manager/ + server-dir: www.web-api.somee.com/ timeout: 120000 From 1884a417636a034d987498856cb8b06cb5044dab Mon Sep 17 00:00:00 2001 From: Alexander Nekrasov <59678267+AleksanderNekr@users.noreply.github.com> Date: Tue, 17 Oct 2023 22:18:13 +0500 Subject: [PATCH 2/8] =?UTF-8?q?Update=20dotnet.yml=20=E2=80=93=20Add=20con?= =?UTF-8?q?n=20str?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 053ae8b..1607461 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -18,6 +18,8 @@ jobs: - name: Restore dependencies run: dotnet restore ChessTourManager.WEB/ChessTourManager.WEB.csproj - name: Publish + env: + ConnectionStrings__DefaultConnection: ${{ secrets.CONN_STR }} run: dotnet publish -c Release --output /publish/ ChessTourManager.WEB/ChessTourManager.WEB.csproj --no-restore - name: 📂 Deploy to FTP server uses: SamKirkland/FTP-Deploy-Action@v4.3.4 From d3e0a7b817a40935525f673441b298ae576f8abe Mon Sep 17 00:00:00 2001 From: Alexander Nekrasov <59678267+AleksanderNekr@users.noreply.github.com> Date: Tue, 17 Oct 2023 22:33:24 +0500 Subject: [PATCH 3/8] =?UTF-8?q?Update=20dotnet.yml=20=E2=80=93=20Add=20set?= =?UTF-8?q?tings=20to=20CL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 1607461..4885e04 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -18,9 +18,7 @@ jobs: - name: Restore dependencies run: dotnet restore ChessTourManager.WEB/ChessTourManager.WEB.csproj - name: Publish - env: - ConnectionStrings__DefaultConnection: ${{ secrets.CONN_STR }} - run: dotnet publish -c Release --output /publish/ ChessTourManager.WEB/ChessTourManager.WEB.csproj --no-restore + run: dotnet publish -c Release --output /publish/ ChessTourManager.WEB/ChessTourManager.WEB.csproj --no-restore --RootConfig:ConnectionStrings:DefaultConnection=${{ secrets.CONN_STR }} - name: 📂 Deploy to FTP server uses: SamKirkland/FTP-Deploy-Action@v4.3.4 with: From d203b8235df7107d1799e1ffa6841e033e5eef38 Mon Sep 17 00:00:00 2001 From: Alexander Nekrasov <59678267+AleksanderNekr@users.noreply.github.com> Date: Thu, 19 Oct 2023 00:31:25 +0500 Subject: [PATCH 4/8] =?UTF-8?q?Update=20dotnet.yml=20=E2=80=93=20Quoted=20?= =?UTF-8?q?conn=20str?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 4885e04..eb992d5 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -18,7 +18,7 @@ jobs: - name: Restore dependencies run: dotnet restore ChessTourManager.WEB/ChessTourManager.WEB.csproj - name: Publish - run: dotnet publish -c Release --output /publish/ ChessTourManager.WEB/ChessTourManager.WEB.csproj --no-restore --RootConfig:ConnectionStrings:DefaultConnection=${{ secrets.CONN_STR }} + run: dotnet publish -c Release --output /publish/ ChessTourManager.WEB/ChessTourManager.WEB.csproj --no-restore --RootConfig:ConnectionStrings:DefaultConnection="${{ secrets.CONN_STR }}" - name: 📂 Deploy to FTP server uses: SamKirkland/FTP-Deploy-Action@v4.3.4 with: From 183f9864577b1a51f007bd183dab4b72c6d7963d Mon Sep 17 00:00:00 2001 From: Alexander Nekrasov <59678267+AleksanderNekr@users.noreply.github.com> Date: Thu, 19 Oct 2023 00:40:46 +0500 Subject: [PATCH 5/8] =?UTF-8?q?Update=20dotnet.yml=20=E2=80=93=20Add=20con?= =?UTF-8?q?n=20str=20using=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index eb992d5..5cea7aa 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -17,8 +17,14 @@ jobs: dotnet-version: 7.0.x - name: Restore dependencies run: dotnet restore ChessTourManager.WEB/ChessTourManager.WEB.csproj + - name: Add connection string + uses: benday-inc/edit-dbconnstr-in-appsettings@main + with: + pathtosettingsfile: '${{ github.workspace }}/ChessTourManager.WEB/appsettings.json' + name: "DefaultConnection" + connectionstring: "${{ secrets.CONN_STR }}" - name: Publish - run: dotnet publish -c Release --output /publish/ ChessTourManager.WEB/ChessTourManager.WEB.csproj --no-restore --RootConfig:ConnectionStrings:DefaultConnection="${{ secrets.CONN_STR }}" + run: dotnet publish -c Release --output /publish/ ChessTourManager.WEB/ChessTourManager.WEB.csproj --no-restore - name: 📂 Deploy to FTP server uses: SamKirkland/FTP-Deploy-Action@v4.3.4 with: From c1045e1ec21a628c589d71804f3fb1710a0411f0 Mon Sep 17 00:00:00 2001 From: Alexander Nekrasov <59678267+AleksanderNekr@users.noreply.github.com> Date: Wed, 25 Oct 2023 19:47:16 +0500 Subject: [PATCH 6/8] =?UTF-8?q?Update=20dotnet.yml=20=E2=80=93=20Conn=20st?= =?UTF-8?q?r=20set=20via=20env=20var?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 5cea7aa..c417398 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -18,11 +18,7 @@ jobs: - name: Restore dependencies run: dotnet restore ChessTourManager.WEB/ChessTourManager.WEB.csproj - name: Add connection string - uses: benday-inc/edit-dbconnstr-in-appsettings@main - with: - pathtosettingsfile: '${{ github.workspace }}/ChessTourManager.WEB/appsettings.json' - name: "DefaultConnection" - connectionstring: "${{ secrets.CONN_STR }}" + run: set ASPNETCORE_ConnectionStrings__DefaultConnection="${{ secrets.CONN_STR }}" - name: Publish run: dotnet publish -c Release --output /publish/ ChessTourManager.WEB/ChessTourManager.WEB.csproj --no-restore - name: 📂 Deploy to FTP server From 0acd4f6eccf11c3985f1eab236269db1326cb682 Mon Sep 17 00:00:00 2001 From: Alexander Nekrasov <59678267+AleksanderNekr@users.noreply.github.com> Date: Wed, 25 Oct 2023 20:16:57 +0500 Subject: [PATCH 7/8] =?UTF-8?q?Update=20dotnet.yml=20=E2=80=93=20Change=20?= =?UTF-8?q?env=20to=20Dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index c417398..aee3f85 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -19,8 +19,10 @@ jobs: run: dotnet restore ChessTourManager.WEB/ChessTourManager.WEB.csproj - name: Add connection string run: set ASPNETCORE_ConnectionStrings__DefaultConnection="${{ secrets.CONN_STR }}" + - name: Set Dev env + run: set ASPNETCORE_ENVIRONMENT=Development - name: Publish - run: dotnet publish -c Release --output /publish/ ChessTourManager.WEB/ChessTourManager.WEB.csproj --no-restore + run: dotnet publish -c Debug --output /publish/ ChessTourManager.WEB/ChessTourManager.WEB.csproj --no-restore - name: 📂 Deploy to FTP server uses: SamKirkland/FTP-Deploy-Action@v4.3.4 with: From 754887ac6fadc34552046dab0ff74e2072a798ab Mon Sep 17 00:00:00 2001 From: Alexander Nekrasov <59678267+AleksanderNekr@users.noreply.github.com> Date: Wed, 25 Oct 2023 20:34:43 +0500 Subject: [PATCH 8/8] =?UTF-8?q?Update=20dotnet.yml=20=E2=80=93=20Change=20?= =?UTF-8?q?site=20to=20CTM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index aee3f85..f35906a 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -26,9 +26,9 @@ jobs: - name: 📂 Deploy to FTP server uses: SamKirkland/FTP-Deploy-Action@v4.3.4 with: - server: web-api.somee.com + server: chesstourmanager.somee.com username: AlexSmith1 password: ${{ secrets.FTP_PASSWORD }} local-dir: /publish/ - server-dir: www.web-api.somee.com/ + server-dir: www.chesstourmanager.somee.com/ timeout: 120000