Skip to content

Merge pull request #319 from polywrap/pileks/feat/what-is-polywrap #57

Merge pull request #319 from polywrap/pileks/feat/what-is-polywrap

Merge pull request #319 from polywrap/pileks/feat/what-is-polywrap #57

Workflow file for this run

name: CD
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Read .nvmrc into env.NVMRC
run: echo NVMRC=$(cat .nvmrc) >> $GITHUB_ENV
- name: Set up Node.js ${{env.NVMRC}}
uses: actions/setup-node@v1
with:
node-version: ${{env.NVMRC}}
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
publish_branch: build-prod