Merge pull request #405 from code-dot-org/ben/guide-continue-icon-click #69
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: Build and Deploy | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '14.17.1' | |
- name: Install and Build | |
run: | | |
yarn install --frozen-lockfile | |
yarn test | |
yarn build | |
cp -r public/* dist | |
- name: Deploy | |
if: ${{ github.ref == 'refs/heads/main' }} | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: dist |