Skip to content

Commit

Permalink
Merge pull request #112 from gnidan/fix/web-ui
Browse files Browse the repository at this point in the history
Fix web UI deployment
  • Loading branch information
gnidan authored May 26, 2023
2 parents 1336b70 + 91e7bce commit 1ed1bbf
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 89 deletions.
70 changes: 0 additions & 70 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

45 changes: 31 additions & 14 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
Expand All @@ -10,20 +7,40 @@ on:
branches: [ master, develop ]

jobs:
build:

build-package:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g yarn
- run: yarn
- run: yarn test
- name: Checkout
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- run: npm install -g yarn
- run: yarn
- run: yarn test

build-ui:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.1

- name: Setup Node.js v16.x
uses: actions/setup-node@v1
with:
node-version: 16.x

- name: Install and build
run: |
yarn
cd packages/abi-to-sol
yarn prepare
cd ../web-ui
PUBLIC_URL=https://gnidan.github.io/abi-to-sol/ yarn build
15 changes: 10 additions & 5 deletions .github/workflows/web-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,25 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
- name: Checkout
uses: actions/checkout@v2.3.1

- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
- name: Setup Node.js v16.x
uses: actions/setup-node@v1
with:
node-version: 16.x

- name: Install and build
run: |
yarn
cd packages/abi-to-sol
yarn prepare
cd ../web-ui
PUBLIC_URL=https://gnidan.github.io/abi-to-sol/ yarn build
- name: Deploy 🚀
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages # The branch the action should deploy to.
folder: packages/web-ui/build # The folder the action should deploy.
branch: gh-pages
folder: packages/web-ui/build

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## vNext

### Project updates

- Fix web UI deployment ([#112](https://github.com/gnidan/abi-to-sol/pull/112)
by [@gnidan](https://github.com/gnidan))

## v0.7.1

See [release notes](https://github.com/gnidan/abi-to-sol/releases/tag/v0.7.1).
Expand Down

0 comments on commit 1ed1bbf

Please sign in to comment.