Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 1 addition & 57 deletions .github/workflows/build-core-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,60 +151,4 @@ jobs:
continue-on-error: true
with:
path: CoverageReports/SummaryGithub.md
deploy_demo:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Demo site
env:
DOTNET_VERSION: "net9.0"
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
DOTNET_ADD_GLOBAL_TOOLS_TO_PATH: false
DOTNET_MULTILEVEL_LOOKUP: 0
PROJECT: "examples/Demo/Client/FluentUI.Demo.Client.csproj"
BUILD_ARCH: "Any CPU"
BUILD_CONFIG: "Release"
SKIP_DEPLOY_ON_MISSING_SECRETS: true
steps:
- name: Checkout source
uses: actions/checkout@v4

- name: .NET Setup SDKs
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.205
# dotnet-quality: ga

- name: .NET Builld
run: dotnet build ${{ env.PROJECT }} -c ${{ env.BUILD_CONFIG }} -o publish -f ${{ env.DOTNET_VERSION }} -r linux-x64 --self-contained=true -p:BuildNumber=$BUILD_NUMBER -p:SourceRevisionId=$GITHUB_SHA -p:ContinuousIntegrationBuild=true

- name: .NET Publish
run: dotnet publish ${{ env.PROJECT }} -c ${{ env.BUILD_CONFIG }} -o publish -f ${{ env.DOTNET_VERSION }} -r linux-x64 --self-contained=true -p:BuildNumber=$BUILD_NUMBER -p:SourceRevisionId=$GITHUB_SHA -p:ContinuousIntegrationBuild=true

- name: Deploy demo site to Azure Static Web App
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS_ISLAND_005801E03 }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: "upload"
app_location: "publish/wwwroot"
api_location: "Api"
output_location: "publish/wwwroot"
skip_api_build: true
skip_app_build: true
production_branch: 'dev'

destroy:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request on Azure Static Web App
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS_ISLAND_005801E03 }}
action: "close"

9 changes: 6 additions & 3 deletions .github/workflows/deploy_demo.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Deploy docs and demo site
on:
# Allow manually running the workflow
workflow_dispatch:

push:
branches:
- main
Expand Down Expand Up @@ -34,7 +37,7 @@ jobs:
- name: Checkout source
uses: actions/checkout@v4

- name: Setup .NET 9.0
- name: .NET Setup SDKs
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.205
Expand All @@ -58,7 +61,7 @@ jobs:
run: dotnet build ${{ env.PROJECT }} -c ${{ env.BUILD_CONFIG }} -o publish -f ${{ env.DOTNET_VERSION }} -r linux-x64 --self-contained=true -p:BuildNumber=$BUILD_NUMBER -p:SourceRevisionId=$GITHUB_SHA -p:ContinuousIntegrationBuild=true

- name: .NET Publish
run: dotnet publish ${{ env.PROJECT }} -c ${{ env.BUILD_CONFIG }} -o publish -f ${{ env.DOTNET_VERSION }} -r linux-x64 --self-contained=true -p:BuildNumber=$BUILD_NUMBER -p:SourceRevisionId=$GITHUB_SHA -p:ContinuousIntegrationBuild=true
run: dotnet publish ${{ env.PROJECT }} -c ${{ env.BUILD_CONFIG }} -o publish -f ${{ env.DOTNET_VERSION }} -r linux-x64 --self-contained=true -p:BuildNumber=$BUILD_NUMBER -p:SourceRevisionId=$GITHUB_SHA -p:ContinuousIntegrationBuild=true --no-build

- name: Deploy demo site to Azure Static Web App
id: builddeploy
Expand All @@ -79,7 +82,7 @@ jobs:
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request on Azure Static Web App (new subscription)
- name: Close Pull Request on Azure Static Web App
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
Expand Down
22 changes: 21 additions & 1 deletion .github/workflows/deploy_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
- '**/*.gitignore'
- '**/*.gitattributes'

pull_request:
types: [opened, synchronize, reopened, closed]
branches: [ main ]
paths-ignore:
- '**/*.gitignore'
- '**/*.gitattributes'
jobs:
build_deploy_demo:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
Expand Down Expand Up @@ -38,14 +44,28 @@ jobs:
dotnet-version: 9.0.205
# dotnet-quality: ga

# - name: Setup .NET 10.0
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: 10.0.x
# dotnet-quality: preview

- name: NPM Install
uses: actions/setup-node@v4
with:
cache: 'npm'
cache-dependency-path: src/Core.Assets/package-lock.json

- run: npm install "src/Core.Assets/"

- name: .NET Builld
run: dotnet build ${{ env.PROJECT }} -c ${{ env.BUILD_CONFIG }} -o publish -f ${{ env.DOTNET_VERSION }} -r linux-x64 --self-contained=true -p:BuildNumber=$BUILD_NUMBER -p:SourceRevisionId=$GITHUB_SHA -p:ContinuousIntegrationBuild=true

- name: .NET Publish
run: dotnet publish ${{ env.PROJECT }} -c ${{ env.BUILD_CONFIG }} -o publish -f ${{ env.DOTNET_VERSION }} -r linux-x64 --self-contained=true -p:BuildNumber=$BUILD_NUMBER -p:SourceRevisionId=$GITHUB_SHA -p:ContinuousIntegrationBuild=true --no-build

- name: Deploy demo site to Azure Static Web App
id: builddeployn
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS_ISLAND_005801E03 }}
Expand Down
Loading