Skip to content

Sentry 2G - Wait till map load to add map layer and events #60

Sentry 2G - Wait till map load to add map layer and events

Sentry 2G - Wait till map load to add map layer and events #60

Workflow file for this run

name: Workflow for build and deploy KIA interface from main branch to gh-pages
on:
push:
branches:
- main
jobs:
deploy-prod:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version-file: "package.json"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Create env file
run: |
touch .env
echo "${{ secrets.KIA_DOT_ENV }}" >> .env
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist