Merge pull request #13 from consensys-vertical-apps/dependabot/npm_an… #21
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: Publish Release | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
publish-release: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get Node.js version | |
id: nvm | |
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ steps.nvm.outputs.NODE_VERSION }} | |
- run: yarn setup | |
- run: yarn build | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
folder: public/ | |
branch: gh-pages |