This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
chore(deps): update jamesives/github-pages-deploy-action action to v4… #540
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: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
- uses: actions/cache@v3 | |
id: yarn-and-build-cache | |
with: | |
path: | | |
build | |
node_modules | |
key: ${{ runner.os }}-node_modules-build-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node_modules-build- | |
- name: Install dependencies | |
run: yarn install --ignore-engines | |
- name: Build | |
run: yarn run build --configuration production --base-href /awesome-hangman/ | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: dist/awesome-hangman |