Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix web UI deployment #112

Merged
merged 4 commits into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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