Merge pull request #223 from christsjcr/main #198
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: | |
push: | |
branches: ["production"] | |
jobs: | |
build-and-deploy: | |
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Install and Build 🔧 # use the lockfile for reproducibility, run typechecking, then output to build folder | |
run: | | |
yarn install --frozen-lockfile | |
yarn run check | |
yarn lint | |
yarn build | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
token: ${{ secrets.DEPLOY_TOKEN }} | |
repository-name: christsjcr/christsjcr.github.io | |
branch: main # The branch the action should deploy to. | |
folder: build # The folder the action should deploy. | |
commit-message: "Updated." |