Merge pull request #2 from nicolelaine/development #3
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 | |
permissions: | |
contents: write | |
jobs: | |
build-and-deploy: | |
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: npm install | |
run: npm install | |
- name: Validate the source files 🔬 | |
run: npm run validate | |
- name: Generate thumbnail images 🖨️ | |
run: npm run thumbnails | |
- name: Install and Build 🔧 | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- run: bundle exec jekyll build --config _config.yml,_config_production.yml | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: _site # The folder the action should deploy. | |
branch: gh-pages |