docs: fix typo in homepage (#16) #45
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: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Cache node_modules folder unless yarn.lock changes (Bulma is updated) | |
- name: Load cached node_modules | |
uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
# Install libraries with Yarn | |
- name: Install packages 📦 | |
run: yarn install | |
# Builds site for production | |
- name: Build site 🚧 | |
run: | | |
yarn build | |
cp CNAME _site/CNAME | |
if: ${{ github.repository_owner == 'zimfw' }} | |
# Builds the site on another repo (not zimfw.sh) | |
- name: Build site (dev) 🚧 | |
run: yarn build:prefix | |
if: ${{ github.repository_owner != 'zimfw' }} | |
# Build site with Jekyll and publish to github_pages branch | |
- name: Deploy to GitHub Pages 💻 | |
uses: JamesIves/github-pages-deploy-action@3.7.1 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: _site | |
CLEAN: true |