Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Created Jul 28, 2021
Embed
What would you like to do?
GitHub Actions workflow for the memory card game
name: Continuous Deployment
on:
push:
branches: [master]
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/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment