Skip to content

fix: intervention nav bugfixes (#1499) #417

fix: intervention nav bugfixes (#1499)

fix: intervention nav bugfixes (#1499) #417

name: Develop Release
on:
push:
branches:
- develop
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- uses: actions/checkout@v3
- name: Cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm install and npm run build
run: |
npm ci
npm run build:staging-develop
- name: add robots.txt to stop spidering
run: |
echo "User-agent: * Disallow: /" > dist/micronutrient-support-tool/robots.txt
- name: Deploy to netlify
id: deploy-netlify
uses: netlify/actions/cli@master
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
with:
args: deploy --dir=dist/micronutrient-support-tool --alias develop