Skip to content

Commit

Permalink
Try pre-building web app
Browse files Browse the repository at this point in the history
  • Loading branch information
dbieber committed Nov 10, 2024
1 parent ffba13f commit c69fdf8
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,29 @@ jobs:
source .venv/bin/activate
pytest
- name: Build web app
run: |
cd GoNoteGo/gonotego/settings-server
npm install
npm run build
cd ../..
- name: Archive web app build
uses: actions/upload-artifact@v4
with:
name: web-app-dist
path: GoNoteGo/gonotego/settings-server/dist

build_image:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download web app build
uses: actions/download-artifact@v4
with:
name: web-app-dist
path: web-app-dist # This will download `dist` into `web-app-dist/dist`

steps:
- uses: pguyot/arm-runner-action@v2
id: build_image
Expand All @@ -55,11 +76,8 @@ jobs:
# Checkout the specific commit
git checkout $GITHUB_SHA
echo "Building web app"
cd gonotego/settings-server
npm install
npm run build
cd ../..
echo "Including web app"
cp -r /github/workspace/web-app-dist/dist /home/pi/code/github/dbieber/GoNoteGo/gonotego/settings-server/dist
echo "Setting up Python environment"
python3 -m venv env
Expand Down

0 comments on commit c69fdf8

Please sign in to comment.