From 17139bca6c715da73db92b1562d2f3009527eb45 Mon Sep 17 00:00:00 2001 From: addisek <147247647+addisek@users.noreply.github.com> Date: Mon, 23 Oct 2023 09:18:26 +0200 Subject: [PATCH 1/3] Add or update the Azure App Service build and deployment workflow config --- .../stara_wersja_elektronicznyobieg.yml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/stara_wersja_elektronicznyobieg.yml diff --git a/.github/workflows/stara_wersja_elektronicznyobieg.yml b/.github/workflows/stara_wersja_elektronicznyobieg.yml new file mode 100644 index 0000000..edc02ad --- /dev/null +++ b/.github/workflows/stara_wersja_elektronicznyobieg.yml @@ -0,0 +1,57 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy +# More GitHub Actions for Azure: https://github.com/Azure/actions + +name: Build and deploy ASP.Net Core app to Azure Web App - elektronicznyobieg + +on: + push: + branches: + - stara_wersja + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '8.x' + include-prerelease: true + + - name: Build with dotnet + run: dotnet build --configuration Release + + - name: dotnet publish + run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v3 + with: + name: .net-app + path: ${{env.DOTNET_ROOT}}/myapp + + deploy: + runs-on: windows-latest + needs: build + environment: + name: 'Production' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v3 + with: + name: .net-app + + - name: Deploy to Azure Web App + id: deploy-to-webapp + uses: azure/webapps-deploy@v2 + with: + app-name: 'elektronicznyobieg' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_2B055EA6029C42E7AC0EA42650507D6C }} + package: . From 5dd7dc4b15e36f96cbedecd227a9932ae600080f Mon Sep 17 00:00:00 2001 From: addisek <147247647+addisek@users.noreply.github.com> Date: Mon, 23 Oct 2023 10:28:49 +0200 Subject: [PATCH 2/3] Create testowy.html --- testowy.html | 1 + 1 file changed, 1 insertion(+) create mode 100644 testowy.html diff --git a/testowy.html b/testowy.html new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/testowy.html @@ -0,0 +1 @@ + From 3bc357ee5fba98239dc4af4fb1e6df0a0646c71b Mon Sep 17 00:00:00 2001 From: addisek <147247647+addisek@users.noreply.github.com> Date: Mon, 23 Oct 2023 10:30:17 +0200 Subject: [PATCH 3/3] Update testowy.html --- testowy.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testowy.html b/testowy.html index 8b13789..249b864 100644 --- a/testowy.html +++ b/testowy.html @@ -1 +1 @@ - +dtgjdjtdtj