more github pages #1
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 | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
folder: public/ |