Create entry for "StarDist Seed" in the model catalog #21
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 frontend | |
on: [push, pull_request] | |
jobs: | |
build-and-deploy-if-main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.15.1' | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install Scivision.Py | |
run: | | |
pip install . | |
- name: Install node packages | |
working-directory: frontend | |
run: npm ci | |
- name: Build | |
working-directory: frontend | |
env: | |
CI: "" | |
run: | | |
npm run build | |
pwd | |
ls | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4.2.2 | |
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
folder: frontend/build | |
clean: true | |