Skip to content

Commit

Permalink
add frontend build step to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
defgsus committed Nov 17, 2023
1 parent 7345a29 commit 5189e80
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
File renamed without changes.
36 changes: 36 additions & 0 deletions .github/workflows/build-frontend-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: build frontend

on:
push:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 17.9.1
- name: build frontend
run: |
cd frontend
yarn
cd ..
./build-frontend.sh
- name: config git user
run: |
curl -s -u ${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }} https://api.github.com/users/${GITHUB_ACTOR} > ${GITHUB_ACTOR}.json
git config user.email "$(cat ${GITHUB_ACTOR}.json | jq -r .email)"
git config user.name "frontend-bot"
- name: commit changes
run: |
git add -f bad/static/brain*
git add -f bad/static/index*
git status
git commit -m"build frontend"
- name: push changes
run: |
git push
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# BrainAGE Designer

[![test](https://github.com/defgsus/brainage-designer/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/defgsus/brainage-designer/actions/workflows/tests.yml)
[![test](https://github.com/defgsus/brainage-designer/actions/workflows/build-frontend-main.yml/badge.svg?branch=main)](https://github.com/defgsus/brainage-designer/actions/workflows/build-frontend-main.yml)

**Brain** **A**ge **G**ap **E**stimation framework with browser-based user interface.

![screenshot](docs/img/screenshot-analysis.png)
Expand Down

0 comments on commit 5189e80

Please sign in to comment.