Skip to content

Merge pull request #3 from DataverseNO/59-svg-logo-loading #9

Merge pull request #3 from DataverseNO/59-svg-logo-loading

Merge pull request #3 from DataverseNO/59-svg-logo-loading #9

name: Build React previewers
on: [push]
jobs:
build_react_previewers:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: python3 -m pip install pyyaml checksumdir
- name: Set up npm
uses: actions/setup-node@v3
- name: Run script and build apps
run: python3 ./.github/scripts/build_previewers.py
- name: Push built previewers
run: |
if [[ `git status --porcelain` ]]; then
git add --all
git config --global user.name 'Previewer Builder'
git config --global user.email '[email protected]'
git commit -am "Previewer update"
git push
else
echo "Nothing changed!"
fi