Merge pull request #48 from LarsBergqvist/dependabot/npm_and_yarn/web… #58
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: Continuous Deployment | |
on: | |
push | |
jobs: | |
test-build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install packages | |
run: yarn install | |
- name: Run tests | |
run: yarn test | |
- name: Build for GitHub pages | |
run: yarn build | |
- name: Deploy to gh-pages branch | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: build |