Skip to content

Build, Test, and Deploy #17

Build, Test, and Deploy

Build, Test, and Deploy #17

name: Deploy React Application
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
branches: [master]
run-name: Build, Test, and Deploy
jobs:
build_test_deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 21
- name: Install dependencies
run: yarn install:fixed
- name: Build
run: yarn build
- name: Run tests
run: yarn test:no-watch
- name: deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build