Automated accessibility data update #947
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
name: Build site | |
on: | |
push: | |
pull_request: | |
jobs: | |
build_site: | |
runs-on: ubuntu-latest | |
name: Build site | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Create env file | |
run: | | |
touch .env.production | |
echo ENVIRONMENT=${{ secrets.PRODUCTION_ENVIRONMENT }} >> .env.production | |
echo ANALYTICS_ENABLED=${{ secrets.PRODUCTION_ANALYTICS_ENABLED }} >> .env.production | |
echo ANALYTICS_GTM_ID=${{ secrets.PRODUCTION_ANALYTICS_GTM_ID }} >> .env.production | |
echo ANALYTICS_SERVER_URL=${{ secrets.PRODUCTION_ANALYTICS_SERVER_URL }} >> .env.production | |
- name: Run build | |
run: | | |
npm install | |
npm run build:prod |