Skip to content

Update dependencies and add new SVG files #243

Update dependencies and add new SVG files

Update dependencies and add new SVG files #243

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Deploy to Github Pages
on:
push:
branches: [ main ]
paths:
- 'data/**'
- 'raw/**'
- scripts/**
- 'viewer/**'
pull_request:
branches: [ main ]
jobs:
pack-local-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'yarn'
- name: Install Packages
run: yarn install
- name: Pack Package
run: yarn package
- name: Upload Package
uses: actions/upload-artifact@v4
with:
name: logos.tgz
path: ./logos.tgz
deploy-frontend:
if : github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'deploy')
needs: pack-local-package
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./viewer
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'npm'
- name: Download Package
id: download-package
uses: actions/download-artifact@v4
with:
name: logos.tgz
path: ./viewer
- name: Sleep
run: sleep 10
- name: Install Packages
run: npm install
- name: Build Page
run: npm run build
- name: Deploy to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: ./viewer/build