From fb71099c707bb3cd1eea3f82f288455d8a1bafba Mon Sep 17 00:00:00 2001 From: Antti Veikkolainen Date: Sat, 13 Dec 2025 15:41:12 +0200 Subject: [PATCH 1/7] #52 Test --- .../workflows/azure-static-web-apps-white-sky-0acd4ad03.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/azure-static-web-apps-white-sky-0acd4ad03.yml b/.github/workflows/azure-static-web-apps-white-sky-0acd4ad03.yml index e54f443..cabdeb5 100644 --- a/.github/workflows/azure-static-web-apps-white-sky-0acd4ad03.yml +++ b/.github/workflows/azure-static-web-apps-white-sky-0acd4ad03.yml @@ -3,12 +3,12 @@ name: Publish Asset Store on: push: branches: - # - main + - main - feature/52-av-web pull_request: types: [opened, synchronize, reopened, closed] branches: - # - main + - main - feature/52-av-web jobs: From 8b2d029ca7e1cbcb85072f0e077f12cca1d46238 Mon Sep 17 00:00:00 2001 From: Antti Veikkolainen Date: Sat, 13 Dec 2025 22:44:48 +0200 Subject: [PATCH 2/7] ci: add Azure Static Web Apps workflow file on-behalf-of: @Azure opensource@microsoft.com --- ...-static-web-apps-kind-meadow-06167bf03.yml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/azure-static-web-apps-kind-meadow-06167bf03.yml diff --git a/.github/workflows/azure-static-web-apps-kind-meadow-06167bf03.yml b/.github/workflows/azure-static-web-apps-kind-meadow-06167bf03.yml new file mode 100644 index 0000000..f86a398 --- /dev/null +++ b/.github/workflows/azure-static-web-apps-kind-meadow-06167bf03.yml @@ -0,0 +1,46 @@ +name: Azure Static Web Apps CI/CD + +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened, closed] + branches: + - main + +jobs: + build_and_deploy_job: + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') + runs-on: ubuntu-latest + name: Build and Deploy Job + steps: + - uses: actions/checkout@v3 + with: + submodules: true + lfs: false + - name: Build And Deploy + id: builddeploy + uses: Azure/static-web-apps-deploy@v1 + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_KIND_MEADOW_06167BF03 }} + repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) + action: "upload" + ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### + # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig + app_location: "./Portal/sharpengine-web-ui" # App source code path + api_location: "" # Api source code path - optional + output_location: "build" # Built app content directory - optional + ###### End of Repository/Build Configurations ###### + + close_pull_request_job: + if: github.event_name == 'pull_request' && github.event.action == 'closed' + runs-on: ubuntu-latest + name: Close Pull Request Job + steps: + - name: Close Pull Request + id: closepullrequest + uses: Azure/static-web-apps-deploy@v1 + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_KIND_MEADOW_06167BF03 }} + action: "close" From 006ab7408366282e79af4828ae2cbd306c65d0ca Mon Sep 17 00:00:00 2001 From: Antti Veikkolainen Date: Sat, 13 Dec 2025 23:23:53 +0200 Subject: [PATCH 3/7] #52 Test yml (#121) * #52 Temp * #52 Test --------- Co-authored-by: Antti Veikkolainen --- ...-static-web-apps-kind-meadow-06167bf03.yml | 46 ------------- ...re-static-web-apps-white-sky-0acd4ad03.yml | 65 ------------------- .github/workflows/publish-asset-store.yml | 61 +++++++++++++++-- .github/workflows/publish-web.yml | 45 +++++++++++-- 4 files changed, 94 insertions(+), 123 deletions(-) delete mode 100644 .github/workflows/azure-static-web-apps-kind-meadow-06167bf03.yml delete mode 100644 .github/workflows/azure-static-web-apps-white-sky-0acd4ad03.yml diff --git a/.github/workflows/azure-static-web-apps-kind-meadow-06167bf03.yml b/.github/workflows/azure-static-web-apps-kind-meadow-06167bf03.yml deleted file mode 100644 index f86a398..0000000 --- a/.github/workflows/azure-static-web-apps-kind-meadow-06167bf03.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Azure Static Web Apps CI/CD - -on: - push: - branches: - - main - pull_request: - types: [opened, synchronize, reopened, closed] - branches: - - main - -jobs: - build_and_deploy_job: - if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') - runs-on: ubuntu-latest - name: Build and Deploy Job - steps: - - uses: actions/checkout@v3 - with: - submodules: true - lfs: false - - name: Build And Deploy - id: builddeploy - uses: Azure/static-web-apps-deploy@v1 - with: - azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_KIND_MEADOW_06167BF03 }} - repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) - action: "upload" - ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### - # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig - app_location: "./Portal/sharpengine-web-ui" # App source code path - api_location: "" # Api source code path - optional - output_location: "build" # Built app content directory - optional - ###### End of Repository/Build Configurations ###### - - close_pull_request_job: - if: github.event_name == 'pull_request' && github.event.action == 'closed' - runs-on: ubuntu-latest - name: Close Pull Request Job - steps: - - name: Close Pull Request - id: closepullrequest - uses: Azure/static-web-apps-deploy@v1 - with: - azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_KIND_MEADOW_06167BF03 }} - action: "close" diff --git a/.github/workflows/azure-static-web-apps-white-sky-0acd4ad03.yml b/.github/workflows/azure-static-web-apps-white-sky-0acd4ad03.yml deleted file mode 100644 index cabdeb5..0000000 --- a/.github/workflows/azure-static-web-apps-white-sky-0acd4ad03.yml +++ /dev/null @@ -1,65 +0,0 @@ -name: Publish Asset Store - -on: - push: - branches: - - main - - feature/52-av-web - pull_request: - types: [opened, synchronize, reopened, closed] - branches: - - main - - feature/52-av-web - -jobs: - build_and_deploy_job: - if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') - runs-on: ubuntu-latest - name: Build and Deploy Job - permissions: - id-token: write - contents: read - steps: - - uses: actions/checkout@v3 - with: - submodules: true - lfs: false - - - name: Install OIDC Client from Core Package - run: npm install @actions/core@1.6.0 @actions/http-client - - - name: Get Id Token - uses: actions/github-script@v6 - id: idtoken - with: - script: | - const coredemo = require('@actions/core') - return await coredemo.getIDToken() - result-encoding: string - - - name: Build And Deploy - id: builddeploy - uses: Azure/static-web-apps-deploy@v1 - with: - azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_SKY_0ACD4AD03 }} - action: "upload" - ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### - # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig - app_location: "/AssetStore/asset-store-ui" # App source code path - api_location: "" # Api source code path - optional - # output_location: "app" # Built app content directory - optional - github_id_token: ${{ steps.idtoken.outputs.result }} - app_build_command: "CI=false npm run build" - ###### End of Repository/Build Configurations ###### - - close_pull_request_job: - if: github.event_name == 'pull_request' && github.event.action == 'closed' - runs-on: ubuntu-latest - name: Close Pull Request Job - steps: - - name: Close Pull Request - id: closepullrequest - uses: Azure/static-web-apps-deploy@v1 - with: - action: "close" - diff --git a/.github/workflows/publish-asset-store.yml b/.github/workflows/publish-asset-store.yml index 5206b9c..e1a0afc 100644 --- a/.github/workflows/publish-asset-store.yml +++ b/.github/workflows/publish-asset-store.yml @@ -1,16 +1,65 @@ -name: Publish Asset Store _ Temp +name: Publish Asset Store on: push: branches: - - test + - main + - feature/52-av-web pull_request: + types: [opened, synchronize, reopened, closed] branches: - - test + - main + - feature/52-av-web jobs: - echo: + build_and_deploy_job: + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') runs-on: ubuntu-latest + name: Build and Deploy Job + permissions: + id-token: write + contents: read steps: - - name: Echo message - run: echo "Hello from the test branch 👋" + - uses: actions/checkout@v3 + with: + submodules: true + lfs: false + + - name: Install OIDC Client from Core Package + run: npm install @actions/core@1.6.0 @actions/http-client + + - name: Get Id Token + uses: actions/github-script@v6 + id: idtoken + with: + script: | + const coredemo = require('@actions/core') + return await coredemo.getIDToken() + result-encoding: string + + - name: Build And Deploy + id: builddeploy + uses: Azure/static-web-apps-deploy@v1 + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_SKY_0ACD4AD03 }} + action: "upload" + ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### + # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig + app_location: "/AssetStore/asset-store-ui" # App source code path + api_location: "" # Api source code path - optional + # output_location: "app" # Built app content directory - optional + github_id_token: ${{ steps.idtoken.outputs.result }} + app_build_command: "CI=false npm run build" + ###### End of Repository/Build Configurations ###### + + close_pull_request_job: + if: github.event_name == 'pull_request' && github.event.action == 'closed' + runs-on: ubuntu-latest + name: Close Pull Request Job + steps: + - name: Close Pull Request + id: closepullrequest + uses: Azure/static-web-apps-deploy@v1 + with: + action: "close" + diff --git a/.github/workflows/publish-web.yml b/.github/workflows/publish-web.yml index b7f0c3d..5886c27 100644 --- a/.github/workflows/publish-web.yml +++ b/.github/workflows/publish-web.yml @@ -1,16 +1,49 @@ -name: Publish Web +name: Publish SharpEngine Web Portal on: push: branches: - - test + - main + - feature/52-av-web pull_request: + types: [opened, synchronize, reopened, closed] branches: - - test + - main + - feature/52-av-web jobs: - echo: + build_and_deploy_job: + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') runs-on: ubuntu-latest + name: Build and Deploy Job steps: - - name: Echo message - run: echo "Hello from the test branch 👋" + - uses: actions/checkout@v3 + with: + submodules: true + lfs: false + - name: Build And Deploy + id: builddeploy + uses: Azure/static-web-apps-deploy@v1 + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_KIND_MEADOW_06167BF03 }} + repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) + action: "upload" + ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### + # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig + app_location: "./Portal/sharpengine-web-ui" # App source code path + # api_location: "" # Api source code path - optional + output_location: "build" # Built app content directory - optional + app_build_command: "CI=false npm run build" + ###### End of Repository/Build Configurations ###### + + close_pull_request_job: + if: github.event_name == 'pull_request' && github.event.action == 'closed' + runs-on: ubuntu-latest + name: Close Pull Request Job + steps: + - name: Close Pull Request + id: closepullrequest + uses: Azure/static-web-apps-deploy@v1 + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_KIND_MEADOW_06167BF03 }} + action: "close" From 906d83de512135937fa32a56749659b12e94dc9e Mon Sep 17 00:00:00 2001 From: Antti Veikkolainen Date: Sat, 13 Dec 2025 23:40:10 +0200 Subject: [PATCH 4/7] ci: add Azure Static Web Apps workflow file on-behalf-of: @Azure opensource@microsoft.com --- ...tic-web-apps-victorious-moss-06d128203.yml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/azure-static-web-apps-victorious-moss-06d128203.yml diff --git a/.github/workflows/azure-static-web-apps-victorious-moss-06d128203.yml b/.github/workflows/azure-static-web-apps-victorious-moss-06d128203.yml new file mode 100644 index 0000000..a63ced0 --- /dev/null +++ b/.github/workflows/azure-static-web-apps-victorious-moss-06d128203.yml @@ -0,0 +1,58 @@ +name: Azure Static Web Apps CI/CD + +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened, closed] + branches: + - main + +jobs: + build_and_deploy_job: + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') + runs-on: ubuntu-latest + name: Build and Deploy Job + permissions: + id-token: write + contents: read + steps: + - uses: actions/checkout@v3 + with: + submodules: true + lfs: false + - name: Install OIDC Client from Core Package + run: npm install @actions/core@1.6.0 @actions/http-client + - name: Get Id Token + uses: actions/github-script@v6 + id: idtoken + with: + script: | + const coredemo = require('@actions/core') + return await coredemo.getIDToken() + result-encoding: string + - name: Build And Deploy + id: builddeploy + uses: Azure/static-web-apps-deploy@v1 + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_VICTORIOUS_MOSS_06D128203 }} + action: "upload" + ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### + # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig + app_location: "./Portal/sharpengine-web-ui" # App source code path + api_location: "" # Api source code path - optional + output_location: "build" # Built app content directory - optional + github_id_token: ${{ steps.idtoken.outputs.result }} + ###### End of Repository/Build Configurations ###### + + close_pull_request_job: + if: github.event_name == 'pull_request' && github.event.action == 'closed' + runs-on: ubuntu-latest + name: Close Pull Request Job + steps: + - name: Close Pull Request + id: closepullrequest + uses: Azure/static-web-apps-deploy@v1 + with: + action: "close" From 02b3f621b2f033d7bb21ae977c4b0fab20269d5a Mon Sep 17 00:00:00 2001 From: Antti Veikkolainen Date: Sun, 14 Dec 2025 00:00:35 +0200 Subject: [PATCH 5/7] #52 temp --- .../azure-static-web-apps-victorious-moss-06d128203.yml | 3 ++- .github/workflows/publish-web.yml | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/azure-static-web-apps-victorious-moss-06d128203.yml b/.github/workflows/azure-static-web-apps-victorious-moss-06d128203.yml index a63ced0..3bc08ab 100644 --- a/.github/workflows/azure-static-web-apps-victorious-moss-06d128203.yml +++ b/.github/workflows/azure-static-web-apps-victorious-moss-06d128203.yml @@ -41,9 +41,10 @@ jobs: ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig app_location: "./Portal/sharpengine-web-ui" # App source code path - api_location: "" # Api source code path - optional + # api_location: "" # Api source code path - optional output_location: "build" # Built app content directory - optional github_id_token: ${{ steps.idtoken.outputs.result }} + app_build_command: "CI=false npm run build" ###### End of Repository/Build Configurations ###### close_pull_request_job: diff --git a/.github/workflows/publish-web.yml b/.github/workflows/publish-web.yml index 5886c27..017a6b2 100644 --- a/.github/workflows/publish-web.yml +++ b/.github/workflows/publish-web.yml @@ -3,13 +3,13 @@ name: Publish SharpEngine Web Portal on: push: branches: - - main + # - main - feature/52-av-web pull_request: - types: [opened, synchronize, reopened, closed] + types: [closed] branches: - main - - feature/52-av-web + # - feature/52-av-web jobs: build_and_deploy_job: From c163f944f7f6e4ae2e8142eecadcf3a3ec728ede Mon Sep 17 00:00:00 2001 From: Antti Veikkolainen Date: Sun, 14 Dec 2025 00:10:27 +0200 Subject: [PATCH 6/7] Test --- Portal/sharpengine-web-ui/src/components/Header.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Portal/sharpengine-web-ui/src/components/Header.tsx b/Portal/sharpengine-web-ui/src/components/Header.tsx index 87068d6..b5bab96 100644 --- a/Portal/sharpengine-web-ui/src/components/Header.tsx +++ b/Portal/sharpengine-web-ui/src/components/Header.tsx @@ -2,7 +2,7 @@ import { useState } from 'react'; import { useNavigate } from 'react-router-dom'; import { ChevronDown, User } from 'lucide-react'; -import { HeaderLogin } from 'sharpengine-ui-shared/src/components/HeaderLogin' +//import { HeaderLogin } from 'sharpengine-ui-shared/src/components/HeaderLogin' export function Header() { const navigate = useNavigate(); @@ -63,7 +63,7 @@ export function Header() { - navigate('/profile')} /> + {/* navigate('/profile')} /> */} ); From 6f5f958c7231fca4fc9a95f6d6c2660865fe1f38 Mon Sep 17 00:00:00 2001 From: Antti Veikkolainen Date: Sun, 4 Jan 2026 23:23:42 +0200 Subject: [PATCH 7/7] Add shields to readme (#118) --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 1af83a0..3621ef8 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,21 @@
[![NuGet Version](https://img.shields.io/nuget/v/SharpEngine.Core.NET)](https://www.nuget.org/packages/SharpEngine.Core.NET) +![NuGet Downloads](https://img.shields.io/nuget/dt/PACKAGE_NAME) +