refactor note endpoint(s) #3114
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
name: 'Deploy [test] Interface: Portal' | |
env: | |
workingDirectory: interfaces/Portal | |
permissions: | |
actions: read | |
# Disabling this to avoid spamming the PR with "Your stage site is ready!" comments | |
# https://github.com/Azure/static-web-apps/issues/1135#issuecomment-1750066331 | |
# pull-requests: write | |
on: | |
workflow_call: | |
secrets: | |
AZURE_STATIC_WEB_APPS_API_TOKEN_HAPPY_ROCK_0411D2003: | |
required: true | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/deploy_test_portal.yml' | |
- 'interfaces/Portal/**' | |
- '!*.md' | |
- '!*.yml' | |
pull_request: | |
types: [opened, synchronize, reopened, closed] | |
branches: | |
- main | |
paths: | |
- '.github/workflows/deploy_test_portal.yml' | |
- 'interfaces/Portal/**' | |
- '!*.md' | |
- '!*.yml' | |
jobs: | |
test: | |
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') | |
runs-on: ubuntu-latest | |
environment: 'test' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Build Interface | |
id: build | |
uses: ./.github/actions/build-interface | |
with: | |
interfacePath: ${{ env.workingDirectory }} | |
envIcon: 'AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAgAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAA////AAAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAiIiIiIiIiAiIiIiIiIiIiIhERERERIiIiEREREREiIiISERERESIiIhIhEiIhIiIiERIREREiIiIRERERESIiIhISERERIiIiESESIiEiIiISEhERESIiIhERERERIiIiEREREREiIiIiIRESIiIiIiIiIiIiIiAiIiIiIiIiCAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAA' | |
envContentSecurityPolicy: >- | |
connect-src 'self' https://test.121.global https://westeurope-5.in.applicationinsights.azure.com https://westeurope.livediagnostics.monitor.azure.com https://login.microsoftonline.com; | |
form-action https://test.121.global; | |
frame-src blob: 'self' https://app.powerbi.com https://login.microsoftonline.com; | |
frame-ancestors 'self' https://flex.twilio.com; | |
env: | |
NG_ENV_NAME: 'test' | |
NG_LOCALES: ${{ vars.NG_LOCALES }} | |
NG_URL_121_SERVICE_API: 'https://test.121.global/api' | |
# Logging disabled by default (uncomment these lines to enable on a per-issue basis) | |
# NG_AI_IKEY: '6cdbf5e6-461c-4f03-bb3b-84f6ecc746b6' | |
# NG_AI_ENDPOINT: 'https://westeurope-5.in.applicationinsights.azure.com/' | |
# APPLICATIONINSIGHTS_CONNECTION_STRING: 'InstrumentationKey=6cdbf5e6-461c-4f03-bb3b-84f6ecc746b6;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/' | |
USE_SSO_AZURE_ENTRA: ${{ vars.USE_SSO_AZURE_ENTRA }} | |
AZURE_ENTRA_CLIENT_ID: ${{ vars.AZURE_ENTRA_CLIENT_ID }} | |
AZURE_ENTRA_TENANT_ID: ${{ vars.AZURE_ENTRA_TENANT_ID }} | |
AZURE_ENTRA_URL: ${{ vars.AZURE_ENTRA_URL }} | |
# More information on Static Web App workflow configurations, | |
# See: https://aka.ms/swaworkflowconfig | |
- name: Deploy to Azure Static Web App | |
id: deploy_to_aswa | |
uses: Azure/static-web-apps-deploy@v1 | |
env: | |
SKIP_DEPLOY_ON_MISSING_SECRETS: true | |
with: | |
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_HAPPY_ROCK_0411D2003 }} | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
action: 'upload' | |
config_file_location: '${{ env.workingDirectory }}/' | |
app_location: '${{ env.workingDirectory }}/www' | |
output_location: '' | |
skip_app_build: true | |
skip_api_build: true | |
- name: Finish | |
run: | | |
echo "Build version: ${{ steps.build.outputs.build_version }}" >> $GITHUB_STEP_SUMMARY | |
echo "Preview: <${{ steps.deploy_to_aswa.outputs.static_web_app_url }}>" >> $GITHUB_STEP_SUMMARY | |
close_pull_request_job: | |
if: github.event_name == 'pull_request' && github.event.action == 'closed' | |
runs-on: ubuntu-latest | |
name: Close Pull Request Job | |
environment: 'test' | |
steps: | |
- name: 'Close Pull Request: Deploy to Azure Static Web App' | |
uses: Azure/static-web-apps-deploy@v1 | |
env: | |
SKIP_DEPLOY_ON_MISSING_SECRETS: true | |
with: | |
app_location: '${{ env.workingDirectory }}/www' | |
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_HAPPY_ROCK_0411D2003 }} | |
action: 'close' |