Skip to content

chore: update try-aks submodule (tab bar position) #48

chore: update try-aks submodule (tab bar position)

chore: update try-aks submodule (tab bar position) #48

Workflow file for this run

name: Deploy Azure Static Web Apps
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://npm.pkg.github.com
- name: Install control plane dependencies
run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Contract checks
run: node tooling/workspacectl.mjs contract
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build all packages and demos
run: node tooling/workspacectl.mjs build
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Stage static site output
run: |
rm -rf _site
mkdir -p _site/trip-notebook _site/solution-architect _site/try-aks
cp -R demos/adaptive-ui-trip-notebook/dist/. _site/trip-notebook/
cp -R demos/adaptive-ui-solution-architect/dist/. _site/solution-architect/
cp -R demos/adaptive-ui-try-aks/dist/. _site/try-aks/
cp staticwebapp.config.json _site/staticwebapp.config.json
cp swa/index.html _site/index.html
- name: Deploy to Azure Static Web Apps
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: upload
app_location: "_site"
api_location: "api"
output_location: ""
skip_app_build: true