Merge pull request #973 from trilitech/dependabot/npm_and_yarn/stylis… #777
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: Deploy to Github Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
env: | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup yarn | |
run: | | |
corepack enable | |
yarn set version stable | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.11.x | |
cache: "yarn" | |
- name: Install packages | |
run: yarn install --immutable | |
- name: Build | |
run: yarn build | |
- name: Deploy Github Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build |