Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Created July 28, 2021 18:23
Show Gist options
  • Save LarsBergqvist/d6ba518c14b5afc90bd67f060df2859f to your computer and use it in GitHub Desktop.
Save LarsBergqvist/d6ba518c14b5afc90bd67f060df2859f to your computer and use it in GitHub Desktop.
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/[email protected]
with:
branch: gh-pages
folder: build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment