Skip to content

Commit

Permalink
Build front end to make available on Heroku (#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkafton authored Apr 24, 2024
1 parent 6c803e2 commit fc06462
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,22 @@ jobs:
with:
ref: release

- name: Download frontend build
uses: actions/download-artifact@v4
- uses: actions/setup-node@v4
with:
name: frontend-build
path: frontends/mit-open/build
node-version: "18.18.2"
cache: yarn
cache-dependency-path: frontends/yarn.lock

- name: Setup environment
run: sudo apt-get install libelf1

- name: Install frontend dependencies
working-directory: frontends
run: yarn install --immutable

- name: Build frontend
working-directory: frontends
run: yarn run build

- uses: akhileshns/heroku-deploy@581dd286c962b6972d427fcf8980f60755c15520
with:
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,22 @@ jobs:
with:
ref: release-candidate

- name: Download frontend build
uses: actions/download-artifact@v4
- uses: actions/setup-node@v4
with:
name: frontend-build
path: frontends/mit-open/build
node-version: "18.18.2"
cache: yarn
cache-dependency-path: frontends/yarn.lock

- name: Setup environment
run: sudo apt-get install libelf1

- name: Install frontend dependencies
working-directory: frontends
run: yarn install --immutable

- name: Build frontend
working-directory: frontends
run: yarn run build

- uses: akhileshns/heroku-deploy@581dd286c962b6972d427fcf8980f60755c15520
with:
Expand Down

0 comments on commit fc06462

Please sign in to comment.