Skip to content

Update docs/commands.md #48

Update docs/commands.md

Update docs/commands.md #48

Workflow file for this run

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