Created
July 28, 2021 18:23
-
-
Save LarsBergqvist/d6ba518c14b5afc90bd67f060df2859f to your computer and use it in GitHub Desktop.
GitHub Actions workflow for the memory card game
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: | |
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