Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
47906dc
chore: moved astro project and setup backend
Povindu Sep 1, 2025
c447aba
Remove obj folder from repo and update .gitignore
Povindu Sep 2, 2025
c4f1647
feat: updated astro build script and baseurl
Povindu Sep 2, 2025
ebe7628
feat: updated landing page links
Povindu Sep 2, 2025
d023795
feat: setup controllers and test health api endpoint
Povindu Sep 2, 2025
60d94f7
feat: added readme
Povindu Sep 2, 2025
18b35e6
feat: updated server.csproj
Povindu Sep 2, 2025
ac004fe
cicd: moved and updated workflows
Povindu Sep 2, 2025
7c36cab
feat: updated gitignore
Povindu Sep 2, 2025
d5bcb33
fix: updated normalized oath in api/reference
Povindu Sep 3, 2025
9f9bc04
cicd: updated gh pages workflow to on run on specific branch
Povindu Sep 3, 2025
6626053
feat: updated .net version to 8.0
Povindu Sep 3, 2025
c2baa50
cicd: updated appservice workflow
Povindu Sep 3, 2025
2c092c0
Change trigger branch for workflow to feat/povindu/setup-dotnet-project
SuperOfficeDevNet Sep 3, 2025
294031d
Add id-token permission to build job
SuperOfficeDevNet Sep 4, 2025
f694d5e
feat: setup zip deployment
Povindu Sep 4, 2025
f7371b5
fix: updated static file serving methid in program.cs
Povindu Sep 4, 2025
3a49516
fix: added redirects to .html extenstion when routing
Povindu Sep 8, 2025
199b486
test build
Povindu Sep 4, 2025
58ac41f
feat: removed baseUrl variables
Povindu Sep 10, 2025
0915ae7
feat: updated middlewware piepline in program.cs
Povindu Sep 10, 2025
21f4615
feat: updated html rewrite to exclude api paths
Povindu Sep 11, 2025
87888b2
cicd: updated deployment branch
Povindu Sep 11, 2025
15da28f
feat: updated rendering method of YAML managed reference
Povindu Sep 10, 2025
10d23da
fix: minor styling and functional fixes in YAML managed references
Povindu Sep 11, 2025
d2e845d
feat: remove YAML managed references content collections
Povindu Sep 11, 2025
8fd66db
cicd: updated workflow to only trigger manually for PR's
Povindu Sep 11, 2025
f0c09e2
fix: setup yamlslug to run only on apiOnly step
Povindu Sep 11, 2025
e1c2c0c
fix: added conditional check for href
Povindu Sep 11, 2025
3a1b1b1
Update azure pipelines - setup build job
Povindu Sep 15, 2025
f02ecf3
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 15, 2025
34f6fbc
test: disable redirect-from plugin
Povindu Sep 15, 2025
e105139
Merge branch 'feat/povindu/update-yaml-rendering' of https://github.c…
Povindu Sep 15, 2025
e1fe679
fix: updated error logging in YamlLayoutPage
Povindu Sep 15, 2025
d9da6f0
temp: temporarily reduce rendering content
Povindu Sep 15, 2025
abe1035
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 15, 2025
ce2801f
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 15, 2025
85be9f8
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 15, 2025
1551446
Revert "temp: temporarily reduce rendering content"
Povindu Sep 15, 2025
3611f8a
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 15, 2025
49367e5
Revert "temp: temporarily reduce rendering content"
Povindu Sep 15, 2025
9b2da7c
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 15, 2025
6e2091b
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 15, 2025
0910d4c
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 15, 2025
7490869
Merge branch 'feat/povindu/update-yaml-rendering' of https://github.c…
Povindu Sep 15, 2025
20a6f07
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 16, 2025
2840ae8
Update build agent in azure pipeline
Povindu Sep 16, 2025
5ec1249
Update build agent azure pipelines
Povindu Sep 16, 2025
67e5997
fix: updated YAML managed reference template
Povindu Sep 17, 2025
2181bf8
style: updated styling in InThisArticle component
Povindu Sep 17, 2025
0140d66
cicd: updated gh-actions-to-azure-deployment
Povindu Sep 17, 2025
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
89 changes: 89 additions & 0 deletions .github/workflows/gh-actions-to-azure-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# This workflow is discontinued due to limitations in github build agents (1GB space limit)

name: Build and deploy ASP.Net Core app to Azure Web App - docs-next
on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read


steps:
- name: Checkout docs-next
uses: actions/checkout@v4

- name: Checkout contribution repo
uses: actions/checkout@v4
with:
fetch-depth: 1
repository: SuperOfficeDocs/contribution
path: ClientApp/external-content/contribution

- name: Checkout SuperOfficeDocs repo
uses: actions/checkout@v4
with:
fetch-depth: 1
repository: SuperOfficeDocs/superoffice-docs
path: ClientApp/external-content/superoffice-docs

# Set up .NET
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'

# Set up Node.js (for Astro build)
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
cache-dependency-path: 'ClientApp/package-lock.json'

- name: Publish project (runs npm + copies frontend via MSBuild target)
working-directory: ./Server
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/out

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: dotnet-artifact
path: ${{env.DOTNET_ROOT}}/out

deploy:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
permissions:
id-token: write
contents: read

steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: dotnet-artifact
path: ./publish

- name: Create deployment ZIP
run: |
cd publish
zip -r ../app.zip .
cd ..

- name: Azure Login (OIDC)
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_7D6201BE9CBA4102A67082079FA9D045 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_E5F979726F2140149EE71D82B31CE225 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_3F73E186A6F2462480840A28C77242B0 }}

- name: Deploy ZIP to Azure Web App
uses: azure/webapps-deploy@v3
with:
app-name: 'docs-next'
package: ./app.zip
Original file line number Diff line number Diff line change
@@ -1,39 +1,33 @@
# workflow for deploying astro project to GitHub Pages
name: Build & Deploy docs-next to Github Pages

on:
# Runs on pull requests and manual invocations for targeted bran
# Runs only when a pull request targets deploy-to-github-pages
pull_request:
branches:
- deploy-to-github-pages

# Allows you to run this workflow manually from the Actions tab
# Allows manual run
workflow_dispatch:
inputs:
target_branch:
description: 'Branch to run the workflow on'
required: false
default: ''

# Runs on pushes targeting the default branch
# Runs only on pushes to deploy-to-github-pages
push:
branches: ["main"]
branches:
- deploy-to-github-pages

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do not cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

# Application is built using 2 jobs which focuses on different content files.
# build-main is built using every content except en/api and build-api only build with en/api content.
# Both build jobs clones 3 repos - SuperOfficeDocs/docs-next, SuperOfficeDocs/superoffice-docs, SuperOfficeDocs/contribution
# Both build jobs outputs respective artifacts - artifact-main and artifact-api

jobs:
build-main:
runs-on: ubuntu-latest
Expand All @@ -48,29 +42,33 @@ jobs:
with:
fetch-depth: 1
repository: SuperOfficeDocs/contribution
path: external-content/contribution
path: ClientApp/external-content/contribution

- name: Checkout SuperOfficeDocs repo
uses: actions/checkout@v4
with:
fetch-depth: 1
repository: SuperOfficeDocs/superoffice-docs
path: external-content/superoffice-docs
path: ClientApp/external-content/superoffice-docs

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
cache-dependency-path: ClientApp/package-lock.json

- run: npm ci
working-directory: ClientApp

- name: Build Astro excluding API
working-directory: ClientApp
env:
API_ONLY: 'false'
run: |
npm run build
mkdir -p dist-out
cp -r dist/* dist-out/
mkdir -p ../dist-out
cp -r dist/* ../dist-out/

- name: Upload main artifact
uses: actions/upload-artifact@v4
Expand All @@ -93,38 +91,40 @@ jobs:
with:
fetch-depth: 1
repository: SuperOfficeDocs/contribution
path: external-content/contribution
path: ClientApp/external-content/contribution

- name: Checkout SuperOfficeDocs repo
uses: actions/checkout@v4
with:
fetch-depth: 1
repository: SuperOfficeDocs/superoffice-docs
path: external-content/superoffice-docs
path: ClientApp/external-content/superoffice-docs

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
cache-dependency-path: ClientApp/package-lock.json

- run: npm ci
working-directory: ClientApp

- name: Build Astro API only
working-directory: ClientApp
env:
API_ONLY: 'true'
run: |
npm run build
mkdir -p dist-out
cp -r dist/* dist-out/
mkdir -p ../dist-out
cp -r dist/* ../dist-out/

- name: Upload API artifact
uses: actions/upload-artifact@v4
with:
name: artifact-api
path: dist-out

# deploy job downloads artifacts from build jobs, merge them in to one directory, create search index, and deploy to github pages
deploy:
needs: [build-main, build-api]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:

- name: Index pages using Pagefind
run: npx pagefind --site final-dist

- name: Check if the PR originates from source repo
id: check_pr_source
run: |
Expand All @@ -188,4 +188,4 @@ jobs:
- name: Deploy to GitHub Pages
if: steps.check_pr_source.outputs.skip_deploy == 'false'
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
65 changes: 0 additions & 65 deletions .github/workflows/main_docs-next.yml

This file was deleted.

42 changes: 29 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
.vs
.vscode/

# build output
dist/
out

ClientApp/dist/

.distA/
.distB/
ClientApp/.distA/
ClientApp/.distB/


# generated types
.astro/
ClientApp/.astro/

# dependencies
node_modules/
ClientApp/node_modules/

# Build Log
ClientApp/build.log


# .NET
Server/bin/
Server/obj/
Server/wwwroot/
Server/publish/


# logs
npm-debug.log*
Expand All @@ -19,8 +35,8 @@ pnpm-debug.log*


# environment variables
.env
.env.production
ClientApp/.env
ClientApp/.env.production

# macOS-specific files
.DS_Store
Expand All @@ -32,12 +48,12 @@ pnpm-debug.log*
.vscode/settings.json

# Playwright
e2e-tests/test-results/
e2e-tests/playwright-report/
e2e-tests/blob-report/
e2e-tests/playwright/.cache/
ClientApp/e2e-tests/test-results/
ClientApp/e2e-tests/playwright-report/
ClientApp/e2e-tests/blob-report/
ClientApp/e2e-tests/playwright/.cache/

# External content (other GitHub repos)

external-content/
public/downloads/
ClientApp/external-content/
ClientApp/public/downloads/
File renamed without changes.
Loading