From c5ab75b50ee316e2c620f89655c1b65627793f65 Mon Sep 17 00:00:00 2001 From: dperezvds Date: Fri, 27 Sep 2024 17:50:08 -0700 Subject: [PATCH 01/15] Create dotnet.yml --- .github/workflows/dotnet.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000000..c62b9087fc --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,28 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: .NET + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal From 574401490bce9584c84a4bc2f75912930bf72012 Mon Sep 17 00:00:00 2001 From: dperezvds Date: Fri, 27 Sep 2024 18:16:49 -0700 Subject: [PATCH 02/15] Update dotnet.yml --- .github/workflows/dotnet.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index c62b9087fc..b411eb455b 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -26,3 +26,27 @@ jobs: run: dotnet build --no-restore - name: Test run: dotnet test --no-build --verbosity normal + - name: Publish + run: dotnet publish -c Release -o website + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3.2.1-node20 + with: + # Artifact name + name: # optional, default is artifact + # A file, directory or wildcard pattern that describes what to upload + path: + # The desired behavior if no files are found using the provided path. +Available Options: + warn: Output a warning but do not fail the action + error: Fail the action with an error message + ignore: Do not output any warnings or errors, the action does not fail + + if-no-files-found: # optional, default is warn + # Duration after which artifact will expire in days. 0 means using default retention. +Minimum 1 day. Maximum 90 days unless changed from the repository settings page. + + retention-days: # optional + # If true, hidden files will be included in the uploaded artifact. If false, hidden files will be excluded from the uploaded artifact. + + include-hidden-files: # optional, default is false + From 8ee47cafd7d310dee02897ffcde5371b92b4db1c Mon Sep 17 00:00:00 2001 From: dperezvds Date: Fri, 27 Sep 2024 18:18:30 -0700 Subject: [PATCH 03/15] Update dotnet.yml 2 --- .github/workflows/dotnet.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index b411eb455b..8e7238742d 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -42,8 +42,7 @@ Available Options: ignore: Do not output any warnings or errors, the action does not fail if-no-files-found: # optional, default is warn - # Duration after which artifact will expire in days. 0 means using default retention. -Minimum 1 day. Maximum 90 days unless changed from the repository settings page. + # Duration after which artifact will expire in days. 0 means using default retention. Minimum 1 day. Maximum 90 days unless changed from the repository settings page. retention-days: # optional # If true, hidden files will be included in the uploaded artifact. If false, hidden files will be excluded from the uploaded artifact. From b4dea9bed6863546b7ea05c69031dbefca17c59b Mon Sep 17 00:00:00 2001 From: dperezvds Date: Fri, 27 Sep 2024 18:20:51 -0700 Subject: [PATCH 04/15] Update 3 dotnet.yml --- .github/workflows/dotnet.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 8e7238742d..31f2816217 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -28,14 +28,12 @@ jobs: run: dotnet test --no-build --verbosity normal - name: Publish run: dotnet publish -c Release -o website - - name: Upload a Build Artifact - uses: actions/upload-artifact@v3.2.1-node20 + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v2.3.1 with: - # Artifact name - name: # optional, default is artifact - # A file, directory or wildcard pattern that describes what to upload - path: - # The desired behavior if no files are found using the provided path. + name: webapp + path: website/** + if-no-files-found: warn Available Options: warn: Output a warning but do not fail the action error: Fail the action with an error message From 285e7345d7525031e8f63ac9d80585260be7dedc Mon Sep 17 00:00:00 2001 From: dperezvds Date: Fri, 27 Sep 2024 18:23:56 -0700 Subject: [PATCH 05/15] Update4 dotnet.yml --- .github/workflows/dotnet.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 31f2816217..44d2d27458 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -28,22 +28,22 @@ jobs: run: dotnet test --no-build --verbosity normal - name: Publish run: dotnet publish -c Release -o website - - name: Upload artifact for deployment job + - name: Upload artifact for deployment job uses: actions/upload-artifact@v2.3.1 - with: - name: webapp - path: website/** - if-no-files-found: warn -Available Options: - warn: Output a warning but do not fail the action - error: Fail the action with an error message - ignore: Do not output any warnings or errors, the action does not fail - - if-no-files-found: # optional, default is warn - # Duration after which artifact will expire in days. 0 means using default retention. Minimum 1 day. Maximum 90 days unless changed from the repository settings page. - - retention-days: # optional + with: + name: webapp + path: website/** + if-no-files-found: warn + Available Options: + warn: Output a warning but do not fail the action + error: Fail the action with an error message + ignore: Do not output any warnings or errors, the action does not fail + + if-no-files-found: # optional, default is warn + # Duration after which artifact will expire in days. 0 means using default retention. Minimum 1 day. Maximum 90 days unless changed from the repository settings page. + + retention-days: # optional # If true, hidden files will be included in the uploaded artifact. If false, hidden files will be excluded from the uploaded artifact. - include-hidden-files: # optional, default is false + include-hidden-files: # optional, default is false From 400a5faea2606a58878ddd089ceb8b2232f0c5c4 Mon Sep 17 00:00:00 2001 From: dperezvds Date: Fri, 27 Sep 2024 18:24:49 -0700 Subject: [PATCH 06/15] Update5 dotnet.yml --- .github/workflows/dotnet.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 44d2d27458..a270e2b24f 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -34,16 +34,5 @@ jobs: name: webapp path: website/** if-no-files-found: warn - Available Options: - warn: Output a warning but do not fail the action - error: Fail the action with an error message - ignore: Do not output any warnings or errors, the action does not fail - if-no-files-found: # optional, default is warn - # Duration after which artifact will expire in days. 0 means using default retention. Minimum 1 day. Maximum 90 days unless changed from the repository settings page. - - retention-days: # optional - # If true, hidden files will be included in the uploaded artifact. If false, hidden files will be excluded from the uploaded artifact. - - include-hidden-files: # optional, default is false From 4c2be74af3853893bbcaffc326fb97321cfe2690 Mon Sep 17 00:00:00 2001 From: dperezvds Date: Fri, 27 Sep 2024 18:27:48 -0700 Subject: [PATCH 07/15] Update6 dotnet.yml --- .github/workflows/dotnet.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index a270e2b24f..2a9656a01b 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -34,5 +34,25 @@ jobs: name: webapp path: website/** if-no-files-found: warn + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3.2.1-node20 + with: + # Artifact name + name: # optional, default is artifact + # A file, directory or wildcard pattern that describes what to upload + path: + # The desired behavior if no files are found using the provided path. +Available Options: + warn: Output a warning but do not fail the action + error: Fail the action with an error message + ignore: Do not output any warnings or errors, the action does not fail + if-no-files-found: # optional, default is warn + # Duration after which artifact will expire in days. 0 means using default retention.Minimum 1 day. Maximum 90 days unless changed from the repository settings page. + + retention-days: # optional + # If true, hidden files will be included in the uploaded artifact. If false, hidden files will be excluded from the uploaded artifact. + + include-hidden-files: # optional, default is false + From 82299748883ebf7d8e33e80067331c784635dc46 Mon Sep 17 00:00:00 2001 From: dperezvds Date: Fri, 27 Sep 2024 18:33:07 -0700 Subject: [PATCH 08/15] Update7 dotnet.yml --- .github/workflows/dotnet.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 2a9656a01b..c17f459d08 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -47,12 +47,5 @@ Available Options: error: Fail the action with an error message ignore: Do not output any warnings or errors, the action does not fail - if-no-files-found: # optional, default is warn - # Duration after which artifact will expire in days. 0 means using default retention.Minimum 1 day. Maximum 90 days unless changed from the repository settings page. - - retention-days: # optional - # If true, hidden files will be included in the uploaded artifact. If false, hidden files will be excluded from the uploaded artifact. - - include-hidden-files: # optional, default is false From 51ffbfe7b8695445f1cd8efa4599a345d179dab7 Mon Sep 17 00:00:00 2001 From: dperezvds Date: Fri, 27 Sep 2024 18:37:48 -0700 Subject: [PATCH 09/15] Update8 dotnet.yml --- .github/workflows/dotnet.yml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index c17f459d08..78a0ff6a6e 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -29,23 +29,9 @@ jobs: - name: Publish run: dotnet publish -c Release -o website - name: Upload artifact for deployment job - uses: actions/upload-artifact@v2.3.1 + uses: actions/upload-artifact@v3.2.1 with: name: webapp path: website/** if-no-files-found: warn - - name: Upload a Build Artifact - uses: actions/upload-artifact@v3.2.1-node20 - with: - # Artifact name - name: # optional, default is artifact - # A file, directory or wildcard pattern that describes what to upload - path: - # The desired behavior if no files are found using the provided path. -Available Options: - warn: Output a warning but do not fail the action - error: Fail the action with an error message - ignore: Do not output any warnings or errors, the action does not fail - - From 6a64ef604ba758a1664a5513629bba7bdfa057ae Mon Sep 17 00:00:00 2001 From: dperezvds Date: Mon, 30 Sep 2024 16:50:38 -0700 Subject: [PATCH 10/15] Update dotnet.yml --- .github/workflows/dotnet.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 78a0ff6a6e..e732016666 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -34,4 +34,19 @@ jobs: name: webapp path: website/** if-no-files-found: warn + deploy: + runs-on: ubuntu-latest + needs: build + steps: + - name: Download a Build Artifact + uses: actions/download-artifact@v2.1.0 + with: + name: webapp + path: webapp + - name: Deploy web app + uses: azure/webapps-deploy@v2 + with: + app-name: GitHubApp-44192085 + publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} + package: webapp From 4b87e0712911464ec12b7f09caa347a99c62331c Mon Sep 17 00:00:00 2001 From: dperezvds Date: Mon, 30 Sep 2024 16:53:53 -0700 Subject: [PATCH 11/15] Update dotnet.yml --- .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 e732016666..df6f35bc78 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -39,7 +39,7 @@ jobs: needs: build steps: - name: Download a Build Artifact - uses: actions/download-artifact@v2.1.0 + uses: actions/download-artifact@v4.1.8 with: name: webapp path: webapp From 2820277eb2a2a240056b07847b65c210cd03edc7 Mon Sep 17 00:00:00 2001 From: dperezvds Date: Mon, 30 Sep 2024 16:55:28 -0700 Subject: [PATCH 12/15] Update dotnet.yml --- .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 df6f35bc78..6550c04ccd 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -42,7 +42,7 @@ jobs: uses: actions/download-artifact@v4.1.8 with: name: webapp - path: webapp + path: website - name: Deploy web app uses: azure/webapps-deploy@v2 with: From 49230e61beb6b722cada68e1a307408772af966f Mon Sep 17 00:00:00 2001 From: dperezvds Date: Mon, 30 Sep 2024 16:59:59 -0700 Subject: [PATCH 13/15] Update dotnet.yml --- .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 6550c04ccd..c0ada4c3c2 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -29,7 +29,7 @@ jobs: - name: Publish run: dotnet publish -c Release -o website - name: Upload artifact for deployment job - uses: actions/upload-artifact@v3.2.1 + uses: actions/upload-artifact@v4.4.0 with: name: webapp path: website/** From e3c9f59bbfa5f1eb394f69158a7e70cf7feba103 Mon Sep 17 00:00:00 2001 From: dperezvds Date: Mon, 30 Sep 2024 17:04:11 -0700 Subject: [PATCH 14/15] Update x dotnet.yml --- .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 c0ada4c3c2..0a8561af29 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -42,7 +42,7 @@ jobs: uses: actions/download-artifact@v4.1.8 with: name: webapp - path: website + path: webapp - name: Deploy web app uses: azure/webapps-deploy@v2 with: From 870eebeacd04220c0334c617fb3918065cb4d2b9 Mon Sep 17 00:00:00 2001 From: dperezvds Date: Mon, 30 Sep 2024 17:08:04 -0700 Subject: [PATCH 15/15] Update _Layout.cshtml --- Views/Shared/_Layout.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Views/Shared/_Layout.cshtml b/Views/Shared/_Layout.cshtml index 0b90ec5b1f..8f28ec8479 100644 --- a/Views/Shared/_Layout.cshtml +++ b/Views/Shared/_Layout.cshtml @@ -21,7 +21,7 @@