Skip to content

Commit

Permalink
Merge pull request #3 from vgrichina/master
Browse files Browse the repository at this point in the history
Setup GH actions to build frontend and deploy to web4
  • Loading branch information
evgenykuzyakov authored Jun 18, 2024
2 parents d8aa3c7 + c8be482 commit 852bee9
Show file tree
Hide file tree
Showing 4 changed files with 5,001 additions and 2,087 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy using web4

concurrency: production

on:
push:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
- run: yarn
- run: yarn build
- name: Deploy using web4
run: npx web4-deploy build/ thewiki.near
30 changes: 30 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn
- run: yarn build
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
]
},
"devDependencies": {
"prettier": "^2.2.1"
"prettier": "^2.2.1",
"web4-deploy": "^0.7.0"
}
}
Loading

0 comments on commit 852bee9

Please sign in to comment.