Merge pull request #319 from polywrap/pileks/feat/what-is-polywrap #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |