Skip to content

Improve text/print styles #1276

Improve text/print styles

Improve text/print styles #1276

# 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: Deploy Azure'
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '!.github/**'
- '.github/workflows/deploy-staging.yml'
- '*'
- '!*.md'
- 'src/**'
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
paths:
- '!.github/**'
- '.github/workflows/deploy-staging.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'
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.green.ico src/favicon.ico'
- name: Build
run: 'npm run build:production'
env:
NG_PRODUCTION: 'true'
ENV_NAME: 'staging'
NG_USE_SERVICE_WORKER: 'true'
NG_USE_OFFERS: 'true'
NG_USE_Q_AND_AS: 'true'
NG_USE_Q_AND_A_SEARCH: 'true'
TXT_APP_NAME: 'Helpful Information'
TXT_APP_LOGO_URL: 'https://rodekruis.github.io/510-ICON-LIBRARY/Beeldmerk_van_het_Nederlandse_Rode_Kruis.svg'
TXT_MAIN_PAGE_HEADER: 'Help for undocumented people'
TXT_MAIN_PAGE_INTRO: >-
This site is by the Netherlands Red Cross for people without legal status.\n
We do not share your personal details.\n
\n
Find information for local services like legal support, health, and shelter.\n
\n
`[ 🟢 = production-data ]`\n
`[ 🟡 = staging-data ]`\n
`[ 🚧 = development-data ]`\n
TXT_MAIN_PAGE_NOTICE: '<div class="d-center">⚠️ **Scheduled maintenance**: `16:00`-`16:05` </div>'
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: >-
example,
,
amsterdam,
utrecht,
almere,
lelystad,
den-haag,
rotterdam,
nijmegen,
eindhoven,
friesland,
groningen,
amsterdam-staging,
,
,
,
template-region,
test
REGIONS_LABELS: >-
Example/Demo 🟡,
,
Amsterdam 🟢,
Utrecht 🟢,
Almere 🟢,
Lelystad 🟢,
Den Haag 🟢,
Rotterdam 🟢,
Nijmegen 🟢,
Eindhoven 🟢,
Friesland 🟡,
Groningen 🟡,
Amsterdam 🟡,
,
,
,
Template REGION,
Test/Example 🚧
REGIONS_SHEET_IDS: >-
1l43SgRymj3EPBOd-wp3mWrfcqDZlKbuAy7HQGo8YnT8,
,
1OANMuGJxGBQ2ba3xVfKvTpD0EGQM-ukUrgRyN9tzMbQ,
1ZqizriL_RJ2dCcNVnCj0GM02pqOLWcIF18A4zVigsrU,
1mod8O9EgvqpCN3ScyAKkOh34x3OGa-8yIc18K_t1xXU,
1ASaVCURxA7vLmc3Vp5NvoEkR58Mc53R35jTVp7GkxM0,
1m43Tw7CWRUdPjaStq6dOi9yvHSYInP1lWjLetk1PrTI,
18qD1PGTK2jTExpVIXXWpjHdpe5KDy7IdcR537CusCLU,
1lWUjA8_sqmY7JRmYOBWn3wfRk2whR-2soZ8qfn_Fdaw,
1OhMLlM6NFD7GkoQEYMP4lnI0FKd__PKdPvYw0x57l8k,
136iThtEhGoMMVFeuMJZdVSGDKFE6XyCcMWfHRhngGjI,
1OYsax_AuIsMriumhyERFOqXDMlxwY74fZgMDYlpC2mE,
1pqG-eyfg0sVq28ogHOkxRB5MIPtRyvwidpVcANGK2FU,
,
,
,
1ofqQbXgJdZbOAXBF4wJ1kEPpqRaMMqlOP5J-AhcwwFI,
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_GREEN_PEBBLE_0707A6B03 }}
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'
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_GREEN_PEBBLE_0707A6B03 }}
action: 'close'