Improve text/print styles #594
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
# More information on Static Web App workflow configurations, | |
# See: https://aka.ms/swaworkflowconfig | |
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
name: 'staging FAQ: Deploy Azure' | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- '!.github/**' | |
- '.github/workflows/deploy-staging-faq.yml' | |
- '*' | |
- '!*.md' | |
- 'src/**' | |
pull_request: | |
types: [opened, synchronize, reopened, closed] | |
branches: | |
- main | |
paths: | |
- '!.github/**' | |
- '.github/workflows/deploy-staging-faq.yml' | |
- '*' | |
- '!*.md' | |
- 'src/**' | |
jobs: | |
build_and_deploy_job: | |
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') | |
runs-on: ubuntu-latest | |
name: Build and Deploy Job | |
environment: 'staging-faq' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js version | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.node-version' | |
cache: 'npm' | |
- name: Install | |
env: | |
HUSKY: 0 | |
run: 'npm ci --no-fund --no-audit' | |
- name: Set/override favicon.ico | |
run: 'cp --force src/favicon.gold.ico src/favicon.ico' | |
- name: Build | |
run: 'npm run build:production' | |
env: | |
NG_PRODUCTION: 'true' | |
ENV_NAME: 'FAQ-Staging' | |
NG_USE_SERVICE_WORKER: 'true' | |
NG_USE_OFFERS: 'false' | |
NG_USE_Q_AND_AS: 'true' | |
NG_USE_Q_AND_A_SEARCH: 'true' | |
TXT_APP_NAME: 'FAQ / Vraagbaak' | |
TXT_APP_LOGO_URL: 'https://rodekruis.github.io/510-ICON-LIBRARY/Beeldmerk_van_het_Nederlandse_Rode_Kruis.svg' | |
TXT_MAIN_PAGE_HEADER: 'This web app is made to give helpful information (HIA) about frequently asked questions (FAQ).' | |
TXT_MAIN_PAGE_INTRO: >- | |
Please select your FAQ below:\n | |
\n | |
`[ 🟢 = production ]`\n | |
`[ 🟡 = staging ]`\n | |
`[ 🔘 = archive ]`\n | |
`[ 🚧 = development ]`\n | |
TXT_ERROR_HEADER: 'Data Unavailable' | |
TXT_ERROR_MESSAGE: 'Reach out to us at: ' | |
TXT_ERROR_CONTACT_URL: 'https://www.rodekruis.nl/' | |
TXT_ERROR_RETRY: 'Try again?' | |
REGIONS: >- | |
ukraine, | |
oekraine, | |
shelter, | |
opvang, | |
morocco, | |
marokko, | |
libya, | |
libie, | |
, | |
, | |
turkiye-syria, | |
turkije-syrie, | |
, | |
, | |
food-program, | |
shelter-program, | |
undocumented-migrants, | |
eu-migrants, | |
protection, | |
human-trafficking, | |
, | |
, | |
jrncs-hotline, | |
, | |
example, | |
test, | |
REGIONS_LABELS: >- | |
Ukraine (EN) 🟢, | |
Oekraïne (NL) 🟢, | |
Asylum seeker (EN) 🟢, | |
Asielzoeker (NL) 🟢, | |
Morocco Earthquake (EN) 🟢, | |
Marokko Aardbeving (NL) 🟢, | |
Libya Floods (EN) 🟢, | |
Libië Overstromingen (NL) 🟢, | |
, | |
, | |
Türkiye-Syria Earthquake (EN) 🔘, | |
Turkije-Syrië Aardbeving (NL) 🔘, | |
, | |
, | |
Food Program 🟡, | |
Shelter Program 🟡, | |
Undocumented Migrants 🟡, | |
EU Migrants 🟡, | |
Protection 🟡, | |
Human-trafficking 🟡, | |
, | |
, | |
JRNCS Hotline 🟡, | |
, | |
Example/Demo 🟡, | |
Test/Example 🚧, | |
REGIONS_SHEET_IDS: >- | |
14NZwDa8DNmH1q2Rxt-ojP9MZhJ-2GlOIyN8RF19iF04, | |
1scCAXRoM66dFbR6f2Lj5FwLWZxm3SLbIgt58LeNNeHE, | |
15yXp_w0chnFRwIfvY6uRgs7TwzxwuBz9iz-dgDFHsbs, | |
1wJ4pfB3l7t16igivt_LkGYmaqZ0hiRsR7_giJUjen-s, | |
1LIhuGvtwPVGn4cC7OnbU33cDzkus8O1MfeYLq-YXYsc, | |
1oUdEkdpQ4h183nUSj-7rWwXNdAsEopL3m9Iy18dc7LA, | |
1N5EAnnc3QVec3M_ME19r1wavzU_4O_R-NPAiiReD9C8, | |
1Iy1PaqgP8ugmm4EsZ7GHk4wXFZSm5mUGxml8Dwl4Uso, | |
, | |
, | |
1d4vUbvj4KhTj0ZQ_J4RizE3wn0JFjvr9SainTkhyRu8, | |
1Rvs49NVJ8iN1Bl-0YUdJwaYF6LqltcC1RovO4UbpV20, | |
, | |
, | |
1WFl8xcy9v-8Ey_iy19eXnflppIwqwgBUaWGBmHtKzLM, | |
1PmlL_KDVeNzFcm4hKMOpXl9k50KJXeY3aX_durfHX0g, | |
1Veli11xRUzIbmfTF8N57xAZqnMWcH1yKVP63PpfXF7s, | |
1SCyJ8v7blSDaeehWuImaRvwXMXC-9o7kbC5bnmotAYw, | |
1DDO1RLaHa0ON8HShtiPMkQb-NNdE_U8-69Plc1fGkGs, | |
1QSymMjPwOgXnBoD0gJsKcXeP9nLhWanKM-HjMPy_46w, | |
, | |
, | |
14dv2jpXouk-XjBZpcts32_kth3dun8VZK0KPcGk274s, | |
, | |
1l43SgRymj3EPBOd-wp3mWrfcqDZlKbuAy7HQGo8YnT8, | |
10SIJdAQSd6loqCyzwK409QS_01Fgp8P4aqoDO8iBvhY, | |
GOOGLE_SHEETS_API_KEY: ${{ secrets.GOOGLE_SHEETS_API_KEY }} | |
GOOGLE_SHEETS_API_URL: 'https://sheets.googleapis.com/v4/spreadsheets' | |
AI_CONNECTION_STRING: '' | |
- name: Set/override robots.txt | |
run: 'cp src/robots.private.txt www/robots.txt' | |
- name: Deploy to Staging | |
uses: Azure/static-web-apps-deploy@v1 | |
with: | |
skip_deploy_on_missing_secrets: true | |
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_ROCK_069A8B403 }} | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
action: 'upload' | |
config_file_location: '/' | |
app_location: 'www' | |
output_location: '' | |
skip_app_build: true | |
skip_api_build: true | |
close_pull_request_job: | |
if: github.event_name == 'pull_request' && github.event.action == 'closed' | |
runs-on: ubuntu-latest | |
name: Close Pull Request Job | |
environment: 'staging-faq' | |
steps: | |
- name: Close Pull Request for Staging | |
uses: Azure/static-web-apps-deploy@v1 | |
with: | |
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_ROCK_069A8B403 }} | |
action: 'close' |