Update chapter09.md #148
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: NodeJS with Gulp | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
# Use GitHub Actions' cache to shorten build times and decrease load on servers | |
- uses: actions/cache@v2 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Install graphicsmagick | |
run: sudo apt install graphicsmagick # Seems to work and already be included with ubuntu-latest... | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Checkout ποΈ | |
uses: actions/checkout@v2 | |
- name: π setup ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 # can change this to 2.7 or whatever version you prefer | |
- name: Build sass and images | |
run: | | |
npm install | |
gulp builddeps | |
- name: π¨ install dependencies & build resources.realitymedia.digital site | |
uses: limjh16/jekyll-action-ts@v2 | |
with: | |
enable_cache: true | |
jekyll_src: . | |
gem_src: . | |
custom_opts: --config=_config.yml,_config-dev.yml | |
- name: π deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: docs | |
clean-exclude: CNAME | |
- name: π¨ install dependencies & build resources.realitymedia.digital site | |
uses: limjh16/jekyll-action-ts@v2 | |
with: | |
enable_cache: true | |
jekyll_src: . | |
gem_src: . | |
custom_opts: --config=_config.yml | |
- name: π deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: realitymedia-pages | |
folder: docs | |
clean-exclude: CNAME |